@@ -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"""
@@ -540,6 +546,7 @@ def set_linestyle(self, ls):
540
546
except ValueError :
541
547
raise ValueError ('Do not know how to convert %s to dashes' % ls )
542
548
self ._linestyles = dashes
549
+ self .stale = True
543
550
544
551
def set_linestyles (self , ls ):
545
552
"""alias for set_linestyle"""
@@ -558,6 +565,7 @@ def set_antialiased(self, aa):
558
565
if aa is None :
559
566
aa = mpl .rcParams ['patch.antialiased' ]
560
567
self ._antialiaseds = self ._get_bool (aa )
568
+ self .stale = True
561
569
562
570
def set_antialiaseds (self , aa ):
563
571
"""alias for set_antialiased"""
@@ -598,6 +606,7 @@ def set_facecolor(self, c):
598
606
c = mpl .rcParams ['patch.facecolor' ]
599
607
self ._facecolors_original = c
600
608
self ._facecolors = mcolors .colorConverter .to_rgba_array (c , self ._alpha )
609
+ self .stale = True
601
610
602
611
def set_facecolors (self , c ):
603
612
"""alias for set_facecolor"""
@@ -644,6 +653,7 @@ def set_edgecolor(self, c):
644
653
c = mpl .rcParams ['patch.edgecolor' ]
645
654
self ._edgecolors_original = c
646
655
self ._edgecolors = mcolors .colorConverter .to_rgba_array (c , self ._alpha )
656
+ self .stale = True
647
657
648
658
def set_edgecolors (self , c ):
649
659
"""alias for set_edgecolor"""
@@ -697,6 +707,7 @@ def update_scalarmappable(self):
697
707
self ._facecolors = self .to_rgba (self ._A , self ._alpha )
698
708
elif self ._is_stroked :
699
709
self ._edgecolors = self .to_rgba (self ._A , self ._alpha )
710
+ self .stale = True
700
711
701
712
def get_fill (self ):
702
713
'return whether fill is set'
@@ -721,7 +732,7 @@ def update_from(self, other):
721
732
self .norm = other .norm
722
733
self .cmap = other .cmap
723
734
# self.update_dict = other.update_dict # do we need to copy this? -JJL
724
-
735
+ self . stale = True
725
736
726
737
# these are not available for the object inspector until after the
727
738
# class is built so we define an initial set here for the init
0 commit comments