mimewritable should be true only if the original object supports it.

This commit is contained in:
Shashi Gowda 2016-09-23 00:45:02 +05:30
parent c798fe6822
commit ce6a982f8b

View File

@ -172,6 +172,7 @@ for mime in keys(_mimeformats)
end
end
Base.mimewritable{B}(m::MIME, plt::Plot{B}) = mimewritable(m, plt.o)
# ---------------------------------------------------------
# A backup, if no PNG generation is defined, is to try to make a PDF and use FileIO to convert