@@ -95,7 +95,7 @@ class Artist(Configurable):
95
95
_transformSet = Bool (False , serialize = True )
96
96
# warn : oInstance used, new TraitType?
97
97
transform = oInstance ('matplotlib.transforms.Transform' ,
98
- serialize = True , perishable = True )
98
+ allow_none = True , serialize = True , perishable = True )
99
99
axes = Instance ('matplotlib.axes._axes.Axes' ,allow_none = True ,
100
100
serialize = True )
101
101
contains = Callable (allow_none = True )
@@ -112,14 +112,14 @@ class Artist(Configurable):
112
112
clipon = Bool (True , perishable = True )
113
113
# * setter and getter methods for `self._clippath` could be refactored
114
114
# using TraitTypes potentially ==> clippath = ?
115
- label = Union ([Unicode ('' ),Instance ('matplotlib.text.Text' )],allow_none = True , perishable = True )
115
+ label = Union ([Unicode ('' ),Instance ('matplotlib.text.Text' ), Int () ],allow_none = True , perishable = True )
116
116
rasterized = Bool (allow_none = True )
117
117
_agg_filter = Callable (None ,allow_none = True , perishable = True )
118
118
eventson = Bool (False )
119
119
_sketch = Tuple (rcParams ['path.sketch' ], allow_none = True ,
120
120
perishable = True ,serialize = True )
121
121
_path_effects = List (trait = Instance ('matplotlib.patheffects.AbstractPathEffect' ),
122
- perishable = True , serialize = True )
122
+ allow_none = True , perishable = True , serialize = True )
123
123
_propobservers = Dict ({}) # a dict from oids to funcs
124
124
_oid = Int (0 ) # an observer id
125
125
@@ -256,6 +256,15 @@ def _picker_changed(self, name, new):
256
256
# warned setters and getters
257
257
# - - - - - - - - - - - - - - -
258
258
259
+ @property
260
+ def _transform (self ):
261
+ #add warn
262
+ return self .transform
263
+ @_transform .setter
264
+ def _transform (self , value ):
265
+ # add warn
266
+ self .transform = value
267
+
259
268
def get_transform (self ):
260
269
# add warn
261
270
return self .transform
0 commit comments