@@ -552,6 +552,8 @@ class Ticker:
552552 def __init__ (self ):
553553 self ._locator = None
554554 self ._formatter = None
555+ self ._locator_is_default = True
556+ self ._formatter_is_default = True
555557
556558 @property
557559 def locator (self ):
@@ -689,6 +691,38 @@ def __init__(self, axes, pickradius=15):
689691 self .clear ()
690692 self ._set_scale ('linear' )
691693
694+ @property
695+ def isDefault_majloc (self ):
696+ return self .major ._locator_is_default
697+
698+ @isDefault_majloc .setter
699+ def isDefault_majloc (self , value ):
700+ self .major ._locator_is_default = value
701+
702+ @property
703+ def isDefault_majfmt (self ):
704+ return self .major ._formatter_is_default
705+
706+ @isDefault_majfmt .setter
707+ def isDefault_majfmt (self , value ):
708+ self .major ._formatter_is_default = value
709+
710+ @property
711+ def isDefault_minloc (self ):
712+ return self .minor ._locator_is_default
713+
714+ @isDefault_minloc .setter
715+ def isDefault_minloc (self , value ):
716+ self .minor ._locator_is_default = value
717+
718+ @property
719+ def isDefault_minfmt (self ):
720+ return self .minor ._formatter_is_default
721+
722+ @isDefault_minfmt .setter
723+ def isDefault_minfmt (self , value ):
724+ self .minor ._formatter_is_default = value
725+
692726 # During initialization, Axis objects often create ticks that are later
693727 # unused; this turns out to be a very slow step. Instead, use a custom
694728 # descriptor to make the tick lists lazy and instantiate them as needed.
0 commit comments