Skip to content

Commit

Permalink
Fix Plotter._plot_contour_using_vtk_file due to deprecation of stitle…
Browse files Browse the repository at this point in the history
… argument by PyVista.

Signed-off-by: paul.profizi <[email protected]>
  • Loading branch information
PProfizi committed Jul 22, 2024
1 parent 324235d commit 530016e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansys/dpf/core/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 530016e

Please sign in to comment.