Skip to content

Commit 58077cc

Browse files
committed
Changing keyword args to avoid a savefig error. (#1027)
1 parent a4da8b2 commit 58077cc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ansys/mapdl/core/plotting.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ def general_plotter(
8686
Shows a vtk axes widget. Enabled by default.
8787
8888
savefig : str, optional
89-
Saves screenshot to a file path.
89+
Saves screenshot to a file path. If used, ``notebook`` and
90+
``off_screen`` are evaluated to ``False`` and ``True``
91+
respectively.
9092
9193
style : string, optional
9294
Visualization style of the mesh. One of the following:
@@ -213,6 +215,10 @@ def general_plotter(
213215
if notebook:
214216
off_screen = True
215217

218+
if savefig:
219+
off_screen = True
220+
notebook = False
221+
216222
if theme is None:
217223
theme = MapdlTheme()
218224

0 commit comments

Comments
 (0)