Skip to content

Commit 7b85110

Browse files
author
Seb Vetter
authored
Handle string formatted None color values for line marker
1 parent 60e3666 commit 7b85110

File tree

1 file changed

+4
-0
lines changed
  • packages/python/plotly/plotly/matplotlylib/mplexporter

1 file changed

+4
-0
lines changed

packages/python/plotly/plotly/matplotlylib/mplexporter/exporter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ def draw_line(self, ax, line, force_trans=None):
193193
if (markerstyle['marker'] in ['None', 'none', None]
194194
or markerstyle['markerpath'][0].size == 0):
195195
markerstyle = None
196+
197+
if (markerstyle and markerstyle.get('facecolor') in ['None', 'none']):
198+
markerstyle["facecolor"] = None
199+
196200
label = line.get_label()
197201
if markerstyle or linestyle:
198202
self.renderer.draw_marked_line(data=data, coordinates=coordinates,

0 commit comments

Comments
 (0)