diff --git a/docs/source/conf.py b/docs/source/conf.py index 57ea6f764d..81ab81ed23 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -14,7 +14,7 @@ pyvista.OFF_SCREEN = True # Preferred plotting style for documentation # pyvista.set_plot_theme('document') -pyvista.rcParams["window_size"] = np.array([1024, 768]) * 2 +pyvista.global_theme.window_size = np.array([1024, 768]) * 2 # 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): diff --git a/requirements/requirements_test.txt b/requirements/requirements_test.txt index 991b217b37..db4f288914 100644 --- a/requirements/requirements_test.txt +++ b/requirements/requirements_test.txt @@ -4,4 +4,4 @@ pytest==7.2.0 pytest-cov==4.0.0 pytest-order==1.0.1 pytest-rerunfailures==11.0 -pyvista==0.36.1 +pyvista==0.41.0 diff --git a/src/ansys/dpf/core/settings.py b/src/ansys/dpf/core/settings.py index 4c2cf5c38f..c451f3fc2a 100644 --- a/src/ansys/dpf/core/settings.py +++ b/src/ansys/dpf/core/settings.py @@ -32,10 +32,10 @@ def set_default_pyvista_config(): if module_exists("pyvista"): import pyvista as pv - pv.rcParams["interactive"] = True - pv.rcParams["cmap"] = "jet" - pv.rcParams["font"]["family"] = "courier" - pv.rcParams["title"] = "DPF" + pv.global_theme.interactive = True + pv.global_theme.cmap = "jet" + pv.global_theme.font.family = "courier" + pv.global_theme.title = "DPF" def bypass_pv_opengl_osmesa_crash():