Skip to content

Commit

Permalink
Patch brown color and legend geometry placement (pyvista#538)
Browse files Browse the repository at this point in the history
* Fix legend geometry placement

* Fix brown color
  • Loading branch information
banesullivan authored Jan 15, 2020
1 parent 20bb6a0 commit 47ff753
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyvista/plotting/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
'blanchedalmond': '#FFEBCD',
'blue': '#0000FF',
'blueviolet': '#8A2BE2',
'brown': '#A52A2A',
'brown': '#654321',
'burlywood': '#DEB887',
'cadetblue': '#5F9EA0',
'chartreuse': '#7FFF00',
Expand Down
1 change: 1 addition & 0 deletions pyvista/plotting/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,7 @@ def prepare_mapper(scalars):
if scalars is not None:
geom = pyvista.Box()
rgb_color = parse_color('black')
geom.points -= geom.center
self._labels.append([geom, label, rgb_color])

# lighting display style
Expand Down

0 comments on commit 47ff753

Please sign in to comment.