File tree 2 files changed +9
-1
lines changed
doc/api/next_api_changes/deprecations
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change
1
+ ``:encoding: `` option to ``.. plot `` directive
2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
+ This option has had no effect since Matplotlib 1.3.1, and is now deprecated.
Original file line number Diff line number Diff line change @@ -196,6 +196,11 @@ def _option_format(arg):
196
196
return directives .choice (arg , ('python' , 'doctest' ))
197
197
198
198
199
+ def _deprecated_option_encoding (arg ):
200
+ _api .warn_deprecated ("3.5" , "encoding" , obj_type = "option" )
201
+ return directives .encoding (arg )
202
+
203
+
199
204
def mark_plot_labels (app , document ):
200
205
"""
201
206
To make plots referenceable, we need to move the reference from the
@@ -244,7 +249,7 @@ class PlotDirective(Directive):
244
249
'format' : _option_format ,
245
250
'context' : _option_context ,
246
251
'nofigs' : directives .flag ,
247
- 'encoding' : directives . encoding ,
252
+ 'encoding' : _deprecated_option_encoding ,
248
253
'caption' : directives .unchanged ,
249
254
}
250
255
You can’t perform that action at this time.
0 commit comments