From 991b2e7ca5e765e068901c0d48a093c54e87d44d Mon Sep 17 00:00:00 2001 From: Thomas Breloff Date: Tue, 9 Aug 2016 16:28:40 -0400 Subject: [PATCH] fix clims for line_z in pyplot; closes #395 --- src/backends/pyplot.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index f8d92503..43590c1f 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -458,6 +458,13 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) :linewidth => py_dpi_scale(plt, series[:linewidth]), :linestyle => py_linestyle(st, series[:linestyle]) ) + clims = sp[:clims] + if is_2tuple(clims) + extrakw = KW() + isfinite(clims[1]) && (extrakw[:vmin] = clims[1]) + isfinite(clims[2]) && (extrakw[:vmax] = clims[2]) + kw[:norm] = pycolors.Normalize(; extrakw...) + end lz = collect(series[:line_z]) handle = if is3d(st) for rng in iter_segments(x, y, z)