Skip to content

Commit

Permalink
MNT: Avoid passing argument to plt.gca()
Browse files Browse the repository at this point in the history
  • Loading branch information
nkeim committed Jun 3, 2024
1 parent c1faf16 commit 596a733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trackpy/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def wrapper(*args, **kwargs):
if kwargs.get('ax') is None:
if not hasattr(plt.gca(), 'zaxis'):
plt.figure() # initialize new Fig when current axis is not 3d
kwargs['ax'] = plt.gca(projection='3d')
kwargs['ax'] = plt.subplot(projection='3d')
show_plot = True
else:
if not hasattr(plt.gca(), 'zaxis'):
Expand Down

0 comments on commit 596a733

Please sign in to comment.