Deprecations
minimumdescent parameter/property of TextArea
offsetbox.TextArea has behaved as if minimumdescent was always True
(regardless of the value to which it was set) since Matplotlib 1.3, so the
parameter/property is deprecated.
Passing bytes to FT2Font.set_text
... is deprecated, pass str instead.
ps.useafm deprecated for mathtext
Outputting mathtext using only standard PostScript fonts has likely been broken
for a while (issue #18722). In Matplotlib 3.5,
the setting rcParams["ps.useafm"] (default: False) will have no effect on mathtext.
MathTextParser("bitmap") is deprecated
The associated APIs MathtextBackendBitmap, MathTextParser.to_mask,
MathTextParser.to_rgba, MathTextParser.to_png, and
MathTextParser.get_depth are likewise deprecated.
To convert a text string to an image, either directly draw the text to an
empty Figure and save the figure using a tight bbox, as demonstrated in
Convert texts to images, or use
.
Deprecation of mathtext internals
The following API elements previously exposed by the mathtext module
are considered to be implementation details and public access to them is
deprecated:
Fonts and all its subclasses,
FontConstantsBase and all its subclasses,
Node and all its subclasses,
Ship, ship,
Error,
,
Deprecation of various mathtext helpers
The MathtextBackendPdf, MathtextBackendPs, MathtextBackendSvg,
and MathtextBackendCairo classes from the mathtext module, as
well as the corresponding .mathtext_parser attributes on RendererPdf,
RendererPS, RendererSVG, and RendererCairo, are deprecated. The
class can be used to obtain a list of glyphs and
rectangles in a mathtext expression, and renderer-specific logic should be
directly implemented in the renderer.