Skip to content

Commit

Permalink
fix parse_color import (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
akaszynski authored Jun 10, 2021
1 parent 201c5a4 commit 38a7d45
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ansys/mapdl/reader/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 38a7d45

Please sign in to comment.