Update Plots.jl's colorbar_titel maps to PGFPlotsX's color bar style={ylabel} (#3848)
* 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. * Update .zenodo.json added my name to the contributors list
This commit is contained in:
parent
405bc0820b
commit
09a66224ce
@ -692,6 +692,10 @@
|
|||||||
{
|
{
|
||||||
"name": "Fred Callaway",
|
"name": "Fred Callaway",
|
||||||
"type": "Other"
|
"type": "Other"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Jan Thorben Schneider",
|
||||||
|
"type": "Other"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"upload_type": "software"
|
"upload_type": "software"
|
||||||
|
|||||||
@ -203,7 +203,7 @@ 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("title" => sp[:colorbar_title])
|
colorbar_style = PGFPlotsX.Options("ylabel" => sp[:colorbar_title])
|
||||||
if sp[:colorbar] === :top
|
if sp[:colorbar] === :top
|
||||||
push!(
|
push!(
|
||||||
colorbar_style,
|
colorbar_style,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user