honour html_output_format in Juno
This commit is contained in:
parent
eaad735d22
commit
05b55fa8dc
@ -267,9 +267,21 @@ function showjuno(io::IO, m, plt)
|
|||||||
plt[:thickness_scaling] *= scale
|
plt[:thickness_scaling] *= scale
|
||||||
|
|
||||||
prepare_output(plt)
|
prepare_output(plt)
|
||||||
_show(io, m, plt)
|
try
|
||||||
|
_showjuno(io, m, plt)
|
||||||
plt[:size] = sz
|
finally
|
||||||
plt[:dpi] = dpi
|
plt[:size] = sz
|
||||||
plt[:thickness_scaling] = thickness_scaling
|
plt[:dpi] = dpi
|
||||||
|
plt[:thickness_scaling] = thickness_scaling
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function _showjuno(io::IO, m::MIME"image/svg+xml", plt)
|
||||||
|
if Symbol(plt.attr[:html_output_format]) ≠ :svg
|
||||||
|
throw(MethodError(show, (typeof(plt),)))
|
||||||
|
else
|
||||||
|
_show(io, m, plt)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
_showjuno(io::IO, m, plt) = _show(io, m, plt)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user