activate clims for inactive colorbar

This commit is contained in:
Daniel Schwabeneder 2017-09-15 18:39:56 +02:00
parent 2dc03cc537
commit f43f2956f5

View File

@ -445,7 +445,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
# handle zcolor and get c/cmap # handle zcolor and get c/cmap
needs_colorbar = hascolorbar(sp) needs_colorbar = hascolorbar(sp)
extrakw = if needs_colorbar extrakw = if needs_colorbar || is_2tuple(sp[:clims])
vmin, vmax = get_clims(sp) vmin, vmax = get_clims(sp)
KW(:vmin => vmin, :vmax => vmax) KW(:vmin => vmin, :vmax => vmax)
else else