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 @@ -194,6 +194,11 @@ def _option_format(arg):
194
194
return directives .choice (arg , ('python' , 'doctest' ))
195
195
196
196
197
+ def _deprecated_option_encoding (arg ):
198
+ _api .warn_deprecated ("3.5" , "encoding" , obj_type = "option" )
199
+ return directives .encoding (arg )
200
+
201
+
197
202
def mark_plot_labels (app , document ):
198
203
"""
199
204
To make plots referenceable, we need to move the reference from the
@@ -242,7 +247,7 @@ class PlotDirective(Directive):
242
247
'format' : _option_format ,
243
248
'context' : _option_context ,
244
249
'nofigs' : directives .flag ,
245
- 'encoding' : directives . encoding ,
250
+ 'encoding' : _deprecated_option_encoding ,
246
251
'caption' : directives .unchanged ,
247
252
}
248
253
You can’t perform that action at this time.
0 commit comments