fix colorbar

This commit is contained in:
Simon Christ 2019-11-19 11:58:57 +01:00
parent cb1d32422a
commit abc212b039

View File

@ -492,14 +492,16 @@ function _update_plot_object(plt::Plot{PGFPlotsXBackend})
for col in (:markercolor, :fillcolor, :linecolor) for col in (:markercolor, :fillcolor, :linecolor)
if typeof(series.plotattributes[col]) == ColorGradient if typeof(series.plotattributes[col]) == ColorGradient
# TODO: fix this # TODO: fix this
# pushed_colormap || push!(PGFPlotsX.CUSTOM_PREAMBLE, """\\pgfplotsset{ if !pushed_colormap
# colormap={plots}{$(pgfx_colormap(series.plotattributes[col]))}, push!(PGFPlotsX.CUSTOM_PREAMBLE, """\\pgfplotsset{
# }""") colormap={plots}{$(pgfx_colormap(series.plotattributes[col]))},
}""")
pushed_colormap = true pushed_colormap = true
push!(axis_opt, push!(axis_opt,
# "colormap" => nothing, "colorbar" => nothing,
# "colormap name" => "plots", "colormap name" => "plots",
) )
end
# TODO: is this needed? # TODO: is this needed?
# if sp[:colorbar] == :none # if sp[:colorbar] == :none