@@ -321,6 +321,7 @@ def draw(self, renderer):
321
321
322
322
gc .restore ()
323
323
renderer .close_group (self .__class__ .__name__ )
324
+ self .stale = False
324
325
325
326
def set_pickradius (self , pr ):
326
327
self ._pickradius = pr
@@ -370,6 +371,7 @@ def set_urls(self, urls):
370
371
self ._urls = [None , ]
371
372
else :
372
373
self ._urls = urls
374
+ self .stale = True
373
375
374
376
def get_urls (self ):
375
377
return self ._urls
@@ -405,6 +407,7 @@ def set_hatch(self, hatch):
405
407
ACCEPTS: [ '/' | '\\ \\ ' | '|' | '-' | '+' | 'x' | 'o' | 'O' | '.' | '*' ]
406
408
"""
407
409
self ._hatch = hatch
410
+ self .stale = True
408
411
409
412
def get_hatch (self ):
410
413
'Return the current hatching pattern'
@@ -424,6 +427,7 @@ def set_offsets(self, offsets):
424
427
self ._offsets = offsets
425
428
else :
426
429
self ._uniform_offsets = offsets
430
+ self .stale = True
427
431
428
432
def get_offsets (self ):
429
433
"""
@@ -446,6 +450,7 @@ def set_offset_position(self, offset_position):
446
450
if offset_position not in ('screen' , 'data' ):
447
451
raise ValueError ("offset_position must be 'screen' or 'data'" )
448
452
self ._offset_position = offset_position
453
+ self .stale = True
449
454
450
455
def get_offset_position (self ):
451
456
"""
@@ -469,6 +474,7 @@ def set_linewidth(self, lw):
469
474
if lw is None :
470
475
lw = mpl .rcParams ['patch.linewidth' ]
471
476
self ._linewidths = self ._get_value (lw )
477
+ self .stale = True
472
478
473
479
def set_linewidths (self , lw ):
474
480
"""alias for set_linewidth"""
@@ -519,6 +525,7 @@ def set_linestyle(self, ls):
519
525
except ValueError :
520
526
raise ValueError ('Do not know how to convert %s to dashes' % ls )
521
527
self ._linestyles = dashes
528
+ self .stale = True
522
529
523
530
def set_linestyles (self , ls ):
524
531
"""alias for set_linestyle"""
@@ -537,6 +544,7 @@ def set_antialiased(self, aa):
537
544
if aa is None :
538
545
aa = mpl .rcParams ['patch.antialiased' ]
539
546
self ._antialiaseds = self ._get_bool (aa )
547
+ self .stale = True
540
548
541
549
def set_antialiaseds (self , aa ):
542
550
"""alias for set_antialiased"""
@@ -577,6 +585,7 @@ def set_facecolor(self, c):
577
585
c = mpl .rcParams ['patch.facecolor' ]
578
586
self ._facecolors_original = c
579
587
self ._facecolors = mcolors .colorConverter .to_rgba_array (c , self ._alpha )
588
+ self .stale = True
580
589
581
590
def set_facecolors (self , c ):
582
591
"""alias for set_facecolor"""
@@ -623,6 +632,7 @@ def set_edgecolor(self, c):
623
632
c = mpl .rcParams ['patch.edgecolor' ]
624
633
self ._edgecolors_original = c
625
634
self ._edgecolors = mcolors .colorConverter .to_rgba_array (c , self ._alpha )
635
+ self .stale = True
626
636
627
637
def set_edgecolors (self , c ):
628
638
"""alias for set_edgecolor"""
@@ -676,6 +686,7 @@ def update_scalarmappable(self):
676
686
self ._facecolors = self .to_rgba (self ._A , self ._alpha )
677
687
elif self ._is_stroked :
678
688
self ._edgecolors = self .to_rgba (self ._A , self ._alpha )
689
+ self .stale = True
679
690
680
691
def get_fill (self ):
681
692
'return whether fill is set'
@@ -700,7 +711,7 @@ def update_from(self, other):
700
711
self .norm = other .norm
701
712
self .cmap = other .cmap
702
713
# self.update_dict = other.update_dict # do we need to copy this? -JJL
703
-
714
+ self . stale = True
704
715
705
716
# these are not available for the object inspector until after the
706
717
# class is built so we define an initial set here for the init
0 commit comments