Merge pull request #769 from blegat/surfaceclims
Use clims with :surface for PyPlot
This commit is contained in:
commit
cbfadde43c
@ -673,6 +673,11 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
|
|||||||
end
|
end
|
||||||
z = transpose_z(series, z)
|
z = transpose_z(series, z)
|
||||||
if st == :surface
|
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
|
if series[:fill_z] != nothing
|
||||||
# the surface colors are different than z-value
|
# the surface colors are different than z-value
|
||||||
extrakw[:facecolors] = py_shading(series[:fillcolor], transpose_z(series, series[:fill_z].surf))
|
extrakw[:facecolors] = py_shading(series[:fillcolor], transpose_z(series, series[:fill_z].surf))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user