fix clims for line_z in pyplot; closes #395
This commit is contained in:
parent
54cd96e5e0
commit
991b2e7ca5
@ -458,6 +458,13 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
|
|||||||
:linewidth => py_dpi_scale(plt, series[:linewidth]),
|
:linewidth => py_dpi_scale(plt, series[:linewidth]),
|
||||||
:linestyle => py_linestyle(st, series[:linestyle])
|
: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])
|
lz = collect(series[:line_z])
|
||||||
handle = if is3d(st)
|
handle = if is3d(st)
|
||||||
for rng in iter_segments(x, y, z)
|
for rng in iter_segments(x, y, z)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user