diff --git a/ansys/mapdl/reader/rst.py b/ansys/mapdl/reader/rst.py index 8e9664b8..6dbe3530 100644 --- a/ansys/mapdl/reader/rst.py +++ b/ansys/mapdl/reader/rst.py @@ -2611,8 +2611,7 @@ def _plot_point_scalars(self, scalars, rnum=None, grid=None, # set scalar bar text colors if text_color: - from pyvista.plotting.theme import parse_color - text_color = parse_color(text_color) + text_color = pv.parse_color(text_color) plotter.scalar_bar.GetLabelTextProperty().SetColor(text_color) plotter.scalar_bar.GetAnnotationTextProperty().SetColor(text_color) plotter.scalar_bar.GetTitleTextProperty().SetColor(text_color) @@ -2819,8 +2818,7 @@ def _animate_point_scalars(self, scalars, grid=None, # set scalar bar text colors if text_color: - from pyvista.plotting.theme import parse_color - text_color = parse_color(text_color) + text_color = pv.parse_color(text_color) plotter.scalar_bar.GetLabelTextProperty().SetColor(text_color) plotter.scalar_bar.GetAnnotationTextProperty().SetColor(text_color) plotter.scalar_bar.GetTitleTextProperty().SetColor(text_color)