@@ -101,13 +101,12 @@ class MarkerStyle:
101
101
filled_markers = (
102
102
'o' , 'v' , '^' , '<' , '>' , '8' , 's' , 'p' , '*' , 'h' , 'H' , 'D' , 'd' )
103
103
104
- fillstyles = ('full' , 'left' , 'right' , 'bottom' , 'top' )
104
+ fillstyles = ('full' , 'left' , 'right' , 'bottom' , 'top' , 'none' )
105
105
106
106
# TODO: Is this ever used as a non-constant?
107
107
_point_size_reduction = 0.5
108
108
109
109
def __init__ (self , marker = None , fillstyle = 'full' ):
110
- self ._fillstyle = fillstyle
111
110
self .set_marker (marker )
112
111
self .set_fillstyle (fillstyle )
113
112
@@ -329,7 +328,7 @@ def _set_square(self):
329
328
self ._transform = Affine2D ().translate (- 0.5 , - 0.5 )
330
329
self ._snap_threshold = 2.0
331
330
fs = self .get_fillstyle ()
332
- if fs == 'full' :
331
+ if fs == 'full' or fs == 'none ' :
333
332
self ._path = Path .unit_rectangle ()
334
333
else :
335
334
# build a bottom filled square out of two rectangles, one
@@ -349,7 +348,7 @@ def _set_diamond(self):
349
348
self ._transform = Affine2D ().translate (- 0.5 , - 0.5 ).rotate_deg (45 )
350
349
self ._snap_threshold = 5.0
351
350
fs = self .get_fillstyle ()
352
- if fs == 'full' :
351
+ if fs == 'full' or fs == 'none ' :
353
352
self ._path = Path .unit_rectangle ()
354
353
else :
355
354
self ._path = Path ([[0.0 , 0.0 ], [1.0 , 0.0 ], [1.0 , 1.0 ], [0.0 , 0.0 ]])
@@ -374,7 +373,7 @@ def _set_pentagon(self):
374
373
polypath = Path .unit_regular_polygon (5 )
375
374
fs = self .get_fillstyle ()
376
375
377
- if fs == 'full' :
376
+ if fs == 'full' or fs == 'none' :
378
377
self ._path = polypath
379
378
else :
380
379
verts = polypath .vertices
@@ -404,7 +403,7 @@ def _set_star(self):
404
403
fs = self .get_fillstyle ()
405
404
polypath = Path .unit_regular_star (5 , innerCircle = 0.381966 )
406
405
407
- if fs == 'full' :
406
+ if fs == 'full' or fs == 'none' :
408
407
self ._path = polypath
409
408
else :
410
409
verts = polypath .vertices
@@ -433,7 +432,7 @@ def _set_hexagon1(self):
433
432
fs = self .get_fillstyle ()
434
433
polypath = Path .unit_regular_polygon (6 )
435
434
436
- if fs == 'full' :
435
+ if fs == 'full' or fs == 'none' :
437
436
self ._path = polypath
438
437
else :
439
438
verts = polypath .vertices
@@ -465,7 +464,7 @@ def _set_hexagon2(self):
465
464
fs = self .get_fillstyle ()
466
465
polypath = Path .unit_regular_polygon (6 )
467
466
468
- if fs == 'full' :
467
+ if fs == 'full' or fs == 'none' :
469
468
self ._path = polypath
470
469
else :
471
470
verts = polypath .vertices
@@ -497,7 +496,7 @@ def _set_octagon(self):
497
496
fs = self .get_fillstyle ()
498
497
polypath = Path .unit_regular_polygon (8 )
499
498
500
- if fs == 'full' :
499
+ if fs == 'full' or fs == 'none' :
501
500
self ._transform .rotate_deg (22.5 )
502
501
self ._path = polypath
503
502
else :
0 commit comments