Merge pull request #1060 from jheinen/master
gr: suppress default output in CI or Jupyter mode
This commit is contained in:
commit
e178dca167
@ -580,6 +580,9 @@ 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()
|
||||||
|
ENV["GKSwstype"] = "svg"
|
||||||
|
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]
|
||||||
|
|||||||
@ -8,6 +8,7 @@ default(show=false, reuse=true)
|
|||||||
img_eps = isinteractive() ? 1e-2 : 10e-2
|
img_eps = isinteractive() ? 1e-2 : 10e-2
|
||||||
|
|
||||||
@testset "GR" begin
|
@testset "GR" begin
|
||||||
|
ENV["GKSwstype"] = "100"
|
||||||
@test gr() == Plots.GRBackend()
|
@test gr() == Plots.GRBackend()
|
||||||
@test backend() == Plots.GRBackend()
|
@test backend() == Plots.GRBackend()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user