Merge pull request #1405 from daschw/contour
Make contourf work with uniform data
This commit is contained in:
commit
d679337700
@ -568,7 +568,7 @@ function get_clims(sp::Subplot)
|
|||||||
isfinite(clims[1]) && (zmin = clims[1])
|
isfinite(clims[1]) && (zmin = clims[1])
|
||||||
isfinite(clims[2]) && (zmax = clims[2])
|
isfinite(clims[2]) && (zmax = clims[2])
|
||||||
end
|
end
|
||||||
return zmin < zmax ? (zmin, zmax) : (0.0, 0.0)
|
return zmin < zmax ? (zmin, zmax) : (-0.1, 0.1)
|
||||||
end
|
end
|
||||||
|
|
||||||
_update_clims(zmin, zmax, emin, emax) = min(zmin, emin), max(zmax, emax)
|
_update_clims(zmin, zmax, emin, emax) = min(zmin, emin), max(zmax, emax)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user