Skip to content

Commit 30a4b62

Browse files
committed
Fix setting z-axis limits
1 parent c2664aa commit 30a4b62

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

animatplot/blocks/surface.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ def __init__(self, *args, ax=None, t_axis=0, fixed_vscale=True, **kwargs):
6161
self.C = np.asanyarray(self.C)
6262

6363
if fixed_vscale:
64-
self.kwargs["vmin"] = self.kwargs.get("vmin", self.C.min())
65-
self.kwargs["vmax"] = self.kwargs.get("vmax", self.C.max())
66-
print("setting vscale", self.C.min(), self.C.max(), self.kwargs)
64+
self.ax.set_zlim([self.C.min(), self.C.max()])
6765

6866
Slice = self._make_slice(0, 3)
6967

0 commit comments

Comments
 (0)