Skip to content

Commit 0326f77

Browse files
Fixing 3D plotting bug in Windows
1 parent c1f4f36 commit 0326f77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

parcels/scripts/plottrajectoriesfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def plotTrajectoriesFile(filename, mode='2d', tracerfile=None, tracerfield='P',
7171
if mode == '3d':
7272
from mpl_toolkits.mplot3d import Axes3D # noqa
7373
plt.clf() # clear the figure
74-
ax = fig.gca(projection='3d')
74+
ax = plt.axes(projection='3d')
7575
for p in range(len(lon)):
7676
ax.plot(lon[p, :], lat[p, :], z[p, :], '.-')
7777
ax.set_xlabel('Longitude')

0 commit comments

Comments
 (0)