From 066ff96b5845599d860305b374f9dee4955857d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Thu, 13 Apr 2017 19:58:31 +0200 Subject: [PATCH] Use clims with :surface for PyPlot --- src/backends/pyplot.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backends/pyplot.jl b/src/backends/pyplot.jl index cdc44fb1..dcbd6461 100644 --- a/src/backends/pyplot.jl +++ b/src/backends/pyplot.jl @@ -683,6 +683,11 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series) end z = transpose_z(series, z) if st == :surface + clims = sp[:clims] + if is_2tuple(clims) + isfinite(clims[1]) && (extrakw[:vmin] = clims[1]) + isfinite(clims[2]) && (extrakw[:vmax] = clims[2]) + end if series[:fill_z] != nothing # the surface colors are different than z-value extrakw[:facecolors] = py_shading(series[:fillcolor], transpose_z(series, series[:fill_z].surf))