From 47ff753d81216f1eabd189015b6b7e2835b26b92 Mon Sep 17 00:00:00 2001 From: Bane Sullivan Date: Wed, 15 Jan 2020 14:48:55 -0700 Subject: [PATCH] Patch brown color and legend geometry placement (#538) * Fix legend geometry placement * Fix brown color --- pyvista/plotting/colors.py | 2 +- pyvista/plotting/plotting.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyvista/plotting/colors.py b/pyvista/plotting/colors.py index 388ffac4e1..2f392332c7 100644 --- a/pyvista/plotting/colors.py +++ b/pyvista/plotting/colors.py @@ -168,7 +168,7 @@ 'blanchedalmond': '#FFEBCD', 'blue': '#0000FF', 'blueviolet': '#8A2BE2', - 'brown': '#A52A2A', + 'brown': '#654321', 'burlywood': '#DEB887', 'cadetblue': '#5F9EA0', 'chartreuse': '#7FFF00', diff --git a/pyvista/plotting/plotting.py b/pyvista/plotting/plotting.py index eeedc1f843..2e54f25d23 100644 --- a/pyvista/plotting/plotting.py +++ b/pyvista/plotting/plotting.py @@ -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