Merge pull request #1674 from djsegal/djsegal/colorbar
Add way to give colorbar_title for pgfplots
This commit is contained in:
commit
0684102511
@ -23,7 +23,7 @@ const _pgfplots_attr = merge_with_base_supported([
|
|||||||
:guide, :lims, :ticks, :scale, :flip, :rotation,
|
:guide, :lims, :ticks, :scale, :flip, :rotation,
|
||||||
:tickfont, :guidefont, :legendfont,
|
:tickfont, :guidefont, :legendfont,
|
||||||
:grid, :legend,
|
:grid, :legend,
|
||||||
:colorbar,
|
:colorbar, :colorbar_title,
|
||||||
:fill_z, :line_z, :marker_z, :levels,
|
:fill_z, :line_z, :marker_z, :levels,
|
||||||
# :ribbon, :quiver, :arrow,
|
# :ribbon, :quiver, :arrow,
|
||||||
# :orientation,
|
# :orientation,
|
||||||
@ -550,6 +550,7 @@ function _update_plot_object(plt::Plot{PGFPlotsBackend})
|
|||||||
end
|
end
|
||||||
@label colorbar_end
|
@label colorbar_end
|
||||||
|
|
||||||
|
push!(style, "colorbar style={title=$(sp[:colorbar_title])}")
|
||||||
o = axisf(; style = join(style, ","), kw...)
|
o = axisf(; style = join(style, ","), kw...)
|
||||||
|
|
||||||
# add the series object to the PGFPlots.Axis
|
# add the series object to the PGFPlots.Axis
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user