immerse fix

This commit is contained in:
Thomas Breloff 2015-10-12 10:42:29 -04:00
parent 23b51c4c3e
commit ce7421bef4

View File

@ -169,7 +169,7 @@ getGadflyContext(plt::Plot{ImmersePackage}) = plt.o[2]
getGadflyContext(subplt::Subplot{ImmersePackage}) = buildGadflySubplotContext(subplt)
function Base.writemime(io::IO, ::MIME"image/png", plt::Plot{ImmersePackage})
gplt = getGadflyContext(plt.backend, plt)
gplt = getGadflyContext(plt)
setGadflyDisplaySize(plt.initargs[:size]...)
Gadfly.draw(Gadfly.PNG(io, Compose.default_graphic_width, Compose.default_graphic_height), gplt)
end