From 514cd1bd3735c63d8642a044c2a3a048c492501b Mon Sep 17 00:00:00 2001 From: Darwin Darakananda Date: Wed, 4 Oct 2017 15:10:36 -0700 Subject: [PATCH] normalize colors even when plotting without colorbars --- src/backends/pyplot.jl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index 12442aec..9918ec08 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -499,11 +499,9 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) :zorder => plt.n, :cmap => py_linecolormap(series), :linewidth => py_dpi_scale(plt, series[:linewidth]), - :linestyle => py_linestyle(st, series[:linestyle]) + :linestyle => py_linestyle(st, series[:linestyle]), + :norm => pycolors["Normalize"](; extrakw...) ) - if needs_colorbar - kw[:norm] = pycolors["Normalize"](; extrakw...) - end lz = collect(series[:line_z]) handle = if is3d(st) for rng in iter_segments(x, y, z)