allow disabling the colorbar in pgfplotsx
This commit is contained in:
parent
238aca6a78
commit
0a6e691222
@ -215,11 +215,10 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
colormap={plots$(sp.attr[:subplot_index])}{$cm},
|
colormap={plots$(sp.attr[:subplot_index])}{$cm},
|
||||||
}""",
|
}""",
|
||||||
)
|
)
|
||||||
push!(
|
if sp[:colorbar] == true
|
||||||
axis_opt,
|
push!(axis_opt, "colorbar" => nothing)
|
||||||
"colorbar" => nothing,
|
end
|
||||||
"colormap name" => "plots$(sp.attr[:subplot_index])",
|
push!(axis_opt, "colormap name" => "plots$(sp.attr[:subplot_index])")
|
||||||
)
|
|
||||||
if cg isa PlotUtils.CategoricalColorGradient
|
if cg isa PlotUtils.CategoricalColorGradient
|
||||||
push!(
|
push!(
|
||||||
axis_opt,
|
axis_opt,
|
||||||
@ -233,6 +232,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
end
|
end
|
||||||
@label colorbar_end
|
@label colorbar_end
|
||||||
|
|
||||||
|
if sp[:colorbar] == true
|
||||||
push!(
|
push!(
|
||||||
axis_opt,
|
axis_opt,
|
||||||
"colorbar style" => PGFPlotsX.Options(
|
"colorbar style" => PGFPlotsX.Options(
|
||||||
@ -241,6 +241,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
"point meta max" => get_clims(sp)[2],
|
"point meta max" => get_clims(sp)[2],
|
||||||
"point meta min" => get_clims(sp)[1],
|
"point meta min" => get_clims(sp)[1],
|
||||||
)
|
)
|
||||||
|
end
|
||||||
if RecipesPipeline.is3d(sp)
|
if RecipesPipeline.is3d(sp)
|
||||||
azim, elev = sp[:camera]
|
azim, elev = sp[:camera]
|
||||||
push!(axis_opt, "view" => (azim, elev))
|
push!(axis_opt, "view" => (azim, elev))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user