It looks like Gadfly does not currently support writemime to any image
backend:
https://github.com/dcjones/Gadfly.jl/blob/5554d3a1bcdc5fc6852cc8f1e469dd3a0f65f220/src/Gadfly.jl#L726-L744
But image/png writemime output be easy to add (maybe file an issue?) since
Gadfly already supports export to PNG images via Cairo. (The disconnect
here is partly due to the fact that the writemime stuff was bolted on
afterwards.) For example, I think you can do:
p = plot(x=[1:10], y=rand(10), Geom.point)
draw(PNG(4inch,3inch), p)
Or you can use PyPlot.
On Friday, February 7, 2014 11:58:21 AM UTC-5, Jacob Quinn wrote:
>
> Steven,
>
> Thanks for the reply, I'd definitely like to get something working for
> plots. I just did a quick test, but I wasn't able to see an image/png tag
> in display_data when I ran the following:
>
> using Gadfly
> plot(x=[1:10], y=[1:10], Geom.point)
>
>