Merge branch 'master' into isen-dev
This commit is contained in:
commit
f5fe2692e2
@ -1,7 +1,7 @@
|
|||||||
name = "Plots"
|
name = "Plots"
|
||||||
uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
|
uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
|
||||||
author = ["Tom Breloff (@tbreloff)"]
|
author = ["Tom Breloff (@tbreloff)"]
|
||||||
version = "1.0.9"
|
version = "1.0.10"
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
||||||
|
|||||||
@ -822,6 +822,7 @@ end
|
|||||||
|
|
||||||
function _update_min_padding!(sp::Subplot{GRBackend})
|
function _update_min_padding!(sp::Subplot{GRBackend})
|
||||||
dpi = sp.plt[:thickness_scaling]
|
dpi = sp.plt[:thickness_scaling]
|
||||||
|
ENV["GKS_ENCODING"] = "utf8"
|
||||||
if !haskey(ENV, "GKSwstype")
|
if !haskey(ENV, "GKSwstype")
|
||||||
if isijulia()
|
if isijulia()
|
||||||
ENV["GKSwstype"] = "svg"
|
ENV["GKSwstype"] = "svg"
|
||||||
@ -1945,6 +1946,7 @@ gr_set_output(wstype::String) = (_gr_wstype[] = wstype)
|
|||||||
|
|
||||||
for (mime, fmt) in _gr_mimeformats
|
for (mime, fmt) in _gr_mimeformats
|
||||||
@eval function _show(io::IO, ::MIME{Symbol($mime)}, plt::Plot{GRBackend})
|
@eval function _show(io::IO, ::MIME{Symbol($mime)}, plt::Plot{GRBackend})
|
||||||
|
ENV["GKS_ENCODING"] = "utf8"
|
||||||
GR.emergencyclosegks()
|
GR.emergencyclosegks()
|
||||||
filepath = tempname() * "." * $fmt
|
filepath = tempname() * "." * $fmt
|
||||||
env = get(ENV, "GKSwstype", "0")
|
env = get(ENV, "GKSwstype", "0")
|
||||||
@ -1963,6 +1965,7 @@ for (mime, fmt) in _gr_mimeformats
|
|||||||
end
|
end
|
||||||
|
|
||||||
function _display(plt::Plot{GRBackend})
|
function _display(plt::Plot{GRBackend})
|
||||||
|
ENV["GKS_ENCODING"] = "utf8"
|
||||||
if plt[:display_type] == :inline
|
if plt[:display_type] == :inline
|
||||||
GR.emergencyclosegks()
|
GR.emergencyclosegks()
|
||||||
filepath = tempname() * ".pdf"
|
filepath = tempname() * ".pdf"
|
||||||
|
|||||||
@ -240,6 +240,16 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
PGFPlotsX.Axis
|
PGFPlotsX.Axis
|
||||||
end
|
end
|
||||||
axis = axisf(axis_opt)
|
axis = axisf(axis_opt)
|
||||||
|
if sp[:legendtitle] !== nothing
|
||||||
|
push!(axis, PGFPlotsX.Options("\\addlegendimage{empty legend}" => nothing))
|
||||||
|
push!(
|
||||||
|
axis,
|
||||||
|
PGFPlotsX.LegendEntry(
|
||||||
|
string("\\hspace{-.6cm}{\\textbf{", sp[:legendtitle], "}}"),
|
||||||
|
false,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
end
|
||||||
for (series_index, series) in enumerate(series_list(sp))
|
for (series_index, series) in enumerate(series_list(sp))
|
||||||
# give each series a uuid for fillbetween
|
# give each series a uuid for fillbetween
|
||||||
series_id = uuid4()
|
series_id = uuid4()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user