File tree 2 files changed +10
-1
lines changed 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,10 @@ def _recache(self):
232
232
self ._snap_threshold = None
233
233
self ._joinstyle = 'round'
234
234
self ._capstyle = 'butt'
235
- self ._filled = True
235
+ # Initial guess: Assume the marker is filled unless the fillstyle is
236
+ # set to 'none'. The marker function will override this for unfilled
237
+ # markers.
238
+ self ._filled = self ._fillstyle != 'none'
236
239
self ._marker_function ()
237
240
238
241
def __bool__ (self ):
Original file line number Diff line number Diff line change 7
7
import pytest
8
8
9
9
10
+ def test_marker_fillstyle ():
11
+ marker_style = markers .MarkerStyle (marker = 'o' , fillstyle = 'none' )
12
+ assert marker_style .get_fillstyle () == 'none'
13
+ assert not marker_style .is_filled ()
14
+
15
+
10
16
def test_markers_valid ():
11
17
marker_style = markers .MarkerStyle ()
12
18
mrk_array = np .array ([[- 0.5 , 0 ],
You can’t perform that action at this time.
0 commit comments