File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
doc/api/next_api_changes/behavior Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change
1
+ Locators and formatters
2
+ ~~~~~~~~~~~~~~~~~~~~~~~
3
+
4
+ Axis locators and formatters must now be subclasses of
5
+ `~matplotlib.ticker.Locator ` and `~matplotlib.ticker.Formatter ` respectively.
Original file line number Diff line number Diff line change @@ -577,10 +577,8 @@ def locator(self):
577
577
@locator .setter
578
578
def locator (self , locator ):
579
579
if not isinstance (locator , mticker .Locator ):
580
- cbook .warn_deprecated (
581
- "3.2" , message = "Support for locators that do not subclass "
582
- "matplotlib.ticker.Locator is deprecated since %(since)s and "
583
- "support for them will be removed %(removal)s." )
580
+ raise TypeError ('locator must be a subclass of '
581
+ 'matplotlib.ticker.Locator' )
584
582
self ._locator = locator
585
583
586
584
@property
@@ -590,10 +588,8 @@ def formatter(self):
590
588
@formatter .setter
591
589
def formatter (self , formatter ):
592
590
if not isinstance (formatter , mticker .Formatter ):
593
- cbook .warn_deprecated (
594
- "3.2" , message = "Support for formatters that do not subclass "
595
- "matplotlib.ticker.Formatter is deprecated since %(since)s "
596
- "and support for them will be removed %(removal)s." )
591
+ raise TypeError ('formatter must be a subclass of '
592
+ 'matplotlib.ticker.Formatter' )
597
593
self ._formatter = formatter
598
594
599
595
You can’t perform that action at this time.
0 commit comments