From 7c505949fc58a08887d339070751410f29c5ce9b Mon Sep 17 00:00:00 2001 From: djsegal Date: Sun, 19 Aug 2018 02:25:04 -0400 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=9Ccolorbar=5Ftitle=E2=80=9D=20to?= =?UTF-8?q?=20pgfplots?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backends/pgfplots.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backends/pgfplots.jl b/src/backends/pgfplots.jl index 153331d8..be3218df 100644 --- a/src/backends/pgfplots.jl +++ b/src/backends/pgfplots.jl @@ -23,7 +23,7 @@ const _pgfplots_attr = merge_with_base_supported([ :guide, :lims, :ticks, :scale, :flip, :rotation, :tickfont, :guidefont, :legendfont, :grid, :legend, - :colorbar, + :colorbar, :colorbar_title, :fill_z, :line_z, :marker_z, :levels, # :ribbon, :quiver, :arrow, # :orientation, @@ -550,6 +550,7 @@ function _update_plot_object(plt::Plot{PGFPlotsBackend}) end @label colorbar_end + push!(style, "colorbar style={title=$(sp[:colorbar_title])}") o = axisf(; style = join(style, ","), kw...) # add the series object to the PGFPlots.Axis