gr: suppress default output in Juno

This commit is contained in:
Josef Heinen 2017-09-01 07:36:49 +02:00
parent cc15882faf
commit 4320c7b9fb

View File

@ -580,9 +580,11 @@ function gr_get_ticks_size(ticks, i)
end end
function _update_min_padding!(sp::Subplot{GRBackend}) function _update_min_padding!(sp::Subplot{GRBackend})
if !haskey(ENV, "GKSwstype") && isijulia() if !haskey(ENV, "GKSwstype")
if isijulia() || (isdefined(Main, :Juno) && Juno.isactive())
ENV["GKSwstype"] = "svg" ENV["GKSwstype"] = "svg"
end end
end
# Add margin given by the user # Add margin given by the user
leftpad = 2mm + sp[:left_margin] leftpad = 2mm + sp[:left_margin]
toppad = 2mm + sp[:top_margin] toppad = 2mm + sp[:top_margin]