Skip to content

Commit

Permalink
FIX: Cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jul 20, 2023
1 parent fab9d43 commit 85b68fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
pyvista.BUILDING_GALLERY = True
# Preferred plotting style for documentation
pyvista.set_plot_theme('document')
ws = np.array([1024, 768]) * 2
try:
rc = pyvista.global_theme
pyvista.global_theme.window_size = ws
except AttributeError:
rc = pyvista.rcParams
rc['window_size'] = np.array([1024, 768]) * 2
rc = pyvista.rcParams["window_size"] = ws
del ws
# Save figures in specified directory
pyvista.FIGURE_PATH = os.path.join(os.path.abspath('./images/'), 'auto-generated/')
if not os.path.exists(pyvista.FIGURE_PATH):
Expand Down

0 comments on commit 85b68fc

Please sign in to comment.