Skip to content

Commit 497671b

Browse files
committed
updated for upcoming matplotlib gca() changes
Fixes #31
1 parent 1e42f73 commit 497671b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pyplot_module.f90

+3-3
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ subroutine initialize(me, grid, xlabel, ylabel, zlabel, title, legend, use_numpy
259259
end if
260260

261261
if (me%mplot3d) then
262-
call me%add_str('ax = fig.gca(projection=''3d'')')
262+
call me%add_str('ax = fig.add_subplot(1, 1, 1, projection=''3d'')')
263263
elseif (me%polar) then
264-
call me%add_str('ax = fig.gca(projection=''polar'')')
264+
call me%add_str('ax = fig.add_subplot(1, 1, 1, projection=''polar'')')
265265
else
266-
call me%add_str('ax = fig.gca()')
266+
call me%add_str('ax = fig.add_subplot(1, 1, 1)')
267267
end if
268268

269269
if (present(grid)) then

0 commit comments

Comments
 (0)