From 801f1fb15fd7f7947608b710dfe318bb4e33ea2a Mon Sep 17 00:00:00 2001 From: Jan Schneider <9451057+jtschneider@users.noreply.github.com> Date: Mon, 27 Sep 2021 11:49:11 +0200 Subject: [PATCH] Update PGFPlotsX colorbar_titel map to ylabel For most of the backends supported by Polts.jl the `colorbar_title` attribute maps to the attribute in the backend that ultimately is displayed on the vertical axis of the colorbar, which is vertically aligned. Not for PGFPlotsX as in this backend the `title` attribute is displayed on top of the colorbar while the `ylabel` is shown on the vertical bar. --- src/backends/pgfplotsx.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index e3b2abb5..26735e58 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -203,7 +203,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend}) if hascolorbar(sp) cticks = get_colorbar_ticks(sp)[2] - colorbar_style = PGFPlotsX.Options("title" => sp[:colorbar_title]) + colorbar_style = PGFPlotsX.Options("ylabel" => sp[:colorbar_title]) if sp[:colorbar] === :top push!( colorbar_style,