diff --git a/requirements/requirements_docs.txt b/requirements/requirements_docs.txt index e48638572b..fed72632f9 100644 --- a/requirements/requirements_docs.txt +++ b/requirements/requirements_docs.txt @@ -6,7 +6,7 @@ imageio-ffmpeg==0.4.7 nbsphinx==0.9.3 pypandoc==1.13 pytest-sphinx==0.6.3 -pyvista==0.43.10 +pyvista==0.44.1 sphinx==7.1.0 sphinx-autobuild==2024.2.4 sphinx-copybutton==0.5.2 diff --git a/requirements/requirements_test.txt b/requirements/requirements_test.txt index e43ec5eb29..27427d3ca0 100644 --- a/requirements/requirements_test.txt +++ b/requirements/requirements_test.txt @@ -6,4 +6,4 @@ pytest==7.4.2 pytest-cov==5.0.0 pytest-order==1.2.1 pytest-rerunfailures==14.0 -pyvista==0.43.10 +pyvista==0.44.1 diff --git a/src/ansys/dpf/core/plotter.py b/src/ansys/dpf/core/plotter.py index a321588b1f..e209141f41 100644 --- a/src/ansys/dpf/core/plotter.py +++ b/src/ansys/dpf/core/plotter.py @@ -1017,6 +1017,6 @@ def _plot_contour_using_vtk_file(self, fields_container, notebook=None): if field_name in n: field_name = n # default: will plot the last time_step val = grid.get_array(field_name) - plotter.add_mesh(grid, scalars=val, stitle=field_name, show_edges=True) + plotter.add_mesh(grid, scalars=val, scalar_bar_args={"title": field_name}, show_edges=True) plotter.add_axes() plotter.show()