Hi,

I want to take a Gadfly plot, convert it to PNG which I can store in-memory 
so I can ultimately use it as the response to a Morsel.jl request, but I'm 
struggling to understand iobuffers and displays. How can I get it to work?

using Gadfly
using Cairo
using RDatasets

NewPlot = plot(dataset("datasets", "iris"),x="SepalLength", y="SepalWidth", 
Geom.point)

let
  iob = IOBuffer()
end

draw(PNG(iob, 6inch, 3inch), NewPlot) #doesnt work

Reply via email to