To fix #4183.
This commit is contained in:
parent
06220420a3
commit
4632dbffeb
@ -206,8 +206,8 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
|
|
||||||
if hascolorbar(sp)
|
if hascolorbar(sp)
|
||||||
cticks = get_colorbar_ticks(sp)[2]
|
cticks = get_colorbar_ticks(sp)[2]
|
||||||
colorbar_style = PGFPlotsX.Options("ylabel" => sp[:colorbar_title])
|
|
||||||
if sp[:colorbar] === :top
|
if sp[:colorbar] === :top
|
||||||
|
colorbar_style = PGFPlotsX.Options("xlabel" => sp[:colorbar_title])
|
||||||
push!(
|
push!(
|
||||||
colorbar_style,
|
colorbar_style,
|
||||||
"at" => string((0.5, 1.05)),
|
"at" => string((0.5, 1.05)),
|
||||||
@ -217,6 +217,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
"xticklabel style" => pgfx_get_colorbar_ticklabel_style(sp),
|
"xticklabel style" => pgfx_get_colorbar_ticklabel_style(sp),
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
colorbar_style = PGFPlotsX.Options("ylabel" => sp[:colorbar_title])
|
||||||
push!(
|
push!(
|
||||||
colorbar_style,
|
colorbar_style,
|
||||||
"ytick" => string("{", join(cticks, ","), "}"),
|
"ytick" => string("{", join(cticks, ","), "}"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user