Skip to content

Commit

Permalink
Fix setting z-axis limits
Browse files Browse the repository at this point in the history
  • Loading branch information
johnomotani committed Apr 5, 2021
1 parent c2664aa commit 30a4b62
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions animatplot/blocks/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ def __init__(self, *args, ax=None, t_axis=0, fixed_vscale=True, **kwargs):
self.C = np.asanyarray(self.C)

if fixed_vscale:
self.kwargs["vmin"] = self.kwargs.get("vmin", self.C.min())
self.kwargs["vmax"] = self.kwargs.get("vmax", self.C.max())
print("setting vscale", self.C.min(), self.C.max(), self.kwargs)
self.ax.set_zlim([self.C.min(), self.C.max()])

Slice = self._make_slice(0, 3)

Expand Down

0 comments on commit 30a4b62

Please sign in to comment.