Skip to content

Commit

Permalink
Merge pull request #273 from boutproject/mayavi-ci-compat
Browse files Browse the repository at this point in the history
Do not call mlab.figure() if mayavi_figure_args=None
  • Loading branch information
johnomotani authored Jan 10, 2023
2 parents 4e4857f + 5c45278 commit 2b3caf4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xbout/plotting/plotfuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,8 @@ def plot3d(
)

if mayavi_figure is None:
if mayavi_figure_args is None:
mayavi_figure_args = {}
mlab.figure(**mayavi_figure_args)
if mayavi_figure_args is not None:
mlab.figure(**mayavi_figure_args)
else:
mlab.figure(mayavi_figure)

Expand Down

0 comments on commit 2b3caf4

Please sign in to comment.