From 7b85110c6679bdf4072a7ce58934581f9220f2b8 Mon Sep 17 00:00:00 2001 From: Seb Vetter Date: Wed, 25 Mar 2020 11:54:56 -0600 Subject: [PATCH] Handle string formatted `None` color values for line marker --- .../python/plotly/plotly/matplotlylib/mplexporter/exporter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/python/plotly/plotly/matplotlylib/mplexporter/exporter.py b/packages/python/plotly/plotly/matplotlylib/mplexporter/exporter.py index 318ee2bf62c..fcd2e5201fc 100644 --- a/packages/python/plotly/plotly/matplotlylib/mplexporter/exporter.py +++ b/packages/python/plotly/plotly/matplotlylib/mplexporter/exporter.py @@ -193,6 +193,10 @@ def draw_line(self, ax, line, force_trans=None): if (markerstyle['marker'] in ['None', 'none', None] or markerstyle['markerpath'][0].size == 0): markerstyle = None + + if (markerstyle and markerstyle.get('facecolor') in ['None', 'none']): + markerstyle["facecolor"] = None + label = line.get_label() if markerstyle or linestyle: self.renderer.draw_marked_line(data=data, coordinates=coordinates,