@@ -88,22 +88,21 @@ class Artist(Configurable):
88
88
aname = 'Artist'
89
89
zorder = 0
90
90
91
-
92
91
# warn on all : check whether serialize is/isn't required.
93
92
94
93
# perishable=True ==> set stale = True
95
94
_transformSet = Bool (False , serialize = True )
96
95
# warn : oInstance used, new TraitType?
97
- transform = oInstance ('matplotlib.transforms.Transform' ,
98
- allow_none = True , serialize = True , perishable = True )
96
+ transform = oInstance ('matplotlib.transforms.Transform' , allow_none = True ,
97
+ serialize = True , perishable = True )
99
98
axes = Instance ('matplotlib.axes._axes.Axes' ,allow_none = True ,
100
99
serialize = True )
101
100
contains = Callable (allow_none = True )
102
101
figure = Instance ('matplotlib.figure.Figure' , allow_none = True ,
103
102
serialize = True , perishable = True )
104
103
visible = Bool (True , perishable = True , serialize = True )
105
104
animated = Bool (False , perishable = True , serialize = True )
106
- alpha = Float (allow_none = True , perishable = True , serialize = True )
105
+ alpha = Float (None , allow_none = True , perishable = True , serialize = True )
107
106
url = Unicode (allow_none = True , serialize = True )
108
107
gid = Unicode (allow_none = True , serialize = True )
109
108
clipbox = Instance ('matplotlib.transforms.BboxBase' , allow_none = True ,
@@ -136,9 +135,7 @@ def __init__(self, config=None, parent=None):
136
135
self .stale = True
137
136
self ._pickable = False
138
137
self ._clippath = None
139
- self ._picker = None
140
- # self._oid = 0
141
- # self._propobservers = {}
138
+ self ._picker = None
142
139
self ._remove_method = None
143
140
144
141
self ._sketch = rcParams ['path.sketch' ]
@@ -256,6 +253,13 @@ def _picker_changed(self, name, new):
256
253
# warned setters and getters
257
254
# - - - - - - - - - - - - - - -
258
255
256
+ @property
257
+ def _contains (self ):
258
+ return self .contains
259
+ @_contains .setter
260
+ def _contains (self , value ):
261
+ self .contains = value
262
+
259
263
@property
260
264
def _transform (self ):
261
265
#add warn
@@ -344,6 +348,15 @@ def get_alpha(self):
344
348
# add warn
345
349
return self .alpha
346
350
351
+ @property
352
+ def _gid (self ):
353
+ #add warn
354
+ return self .gid
355
+ @_gid .setter
356
+ def _gid (self , value ):
357
+ # add warn
358
+ self .gid = value
359
+
347
360
def get_gid (self ):
348
361
"""
349
362
Returns the group id
@@ -360,6 +373,15 @@ def set_gid(self, gid):
360
373
# add warn
361
374
self .gid = gid
362
375
376
+ @property
377
+ def _clipbox (self ):
378
+ #add warn
379
+ return self .clipbox
380
+ @_clipbox .setter
381
+ def _clipbox (self , value ):
382
+ # add warn
383
+ self .clipbox = value
384
+
363
385
def set_clip_box (self , clipbox ):
364
386
"""
365
387
Set the artist's clip :class:`~matplotlib.transforms.Bbox`.
@@ -374,6 +396,15 @@ def get_clip_box(self):
374
396
# add warn
375
397
return self .clipbox
376
398
399
+ @property
400
+ def _snap (self ):
401
+ #add warn
402
+ return self .snap
403
+ @_snap .setter
404
+ def _snap (self , value ):
405
+ # add warn
406
+ self .snap = value
407
+
377
408
def get_snap (self ):
378
409
"""
379
410
Returns the snap setting which may be:
0 commit comments