pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/matplotlib/matplotlib/commit/1885e460ff39b73377f5a94197c9f8d301ac5288

igin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-7a1ad343bd40328c.css" /> Recreated deprecated files and changed references · matplotlib/matplotlib@1885e46 · GitHub
Skip to content

Commit 1885e46

Browse files
oscargusOscar Gustafsson
authored andcommitted
Recreated deprecated files and changed references
1 parent cd8abb0 commit 1885e46

17 files changed

Lines changed: 51 additions & 32 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
``Type1Font`` objects include more properties
22
---------------------------------------------
33

4-
The `.type1font.Type1Font.prop` dictionary now includes more keys, such
5-
as ``CharStrings`` and ``Subrs``. The value of the ``Encoding`` key is
4+
The ``matplotlib._type1font.Type1Font.prop`` dictionary now includes more keys,
5+
such as ``CharStrings`` and ``Subrs``. The value of the ``Encoding`` key is
66
now a dictionary mapping codes to glyph names. The
7-
`.type1font.Type1Font.transform` method now correctly removes
7+
``matplotlib._type1font.Type1Font.transform`` method now correctly removes
88
``UniqueID`` properties from the font.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
``AFM``, ``configfont_pattern`` and ``Type1Font`` deprecated
2+
------------------------------------------------------------
3+
4+
The modules ``matplotlib.AFM``, ``matplotlib.configfont_pattern``, and
5+
``matplotlib.Type1Font`` are considered internal and public access is
6+
deprecated.

doc/api/prev_api_changes/api_changes_0.91.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Changes for 0.91.0
3636
pfa/pfb file, to get metrics and kerning information for a Type 1
3737
font.
3838

39-
* The :class:`.AFM` class now supports querying CapHeight and stem
39+
* The ``AFM`` class now supports querying CapHeight and stem
4040
widths. The get_name_char method now has an isord kwarg like
4141
get_width_char.
4242

doc/api/prev_api_changes/api_changes_0.98.x.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ Changes for 0.98.x
6363
:meth:`matplotlib.axes.Axes.set_ylim` now return a copy of the
6464
``viewlim`` array to avoid modify-in-place surprises.
6565

66-
* :meth:`matplotlib.afm.AFM.get_fullname` and
67-
:meth:`matplotlib.afm.AFM.get_familyname` no longer raise an
66+
* ``matplotlib.afm.AFM.get_fullname`` and
67+
``matplotlib.afm.AFM.get_familyname`` no longer raise an
6868
exception if the AFM file does not specify these optional
6969
attributes, but returns a guess based on the required FontName
7070
attribute.

doc/api/prev_api_changes/api_changes_3.5.0/behaviour.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ defaults to *False*.
229229

230230
Type 1 fonts have a large part of their code encrypted as an obsolete
231231
copy-protection measure. This part is now available decrypted as the
232-
``decrypted`` attribute of `~.type1font.Type1Font`. This decrypted data is not
233-
yet parsed, but this is a prerequisite for implementing subsetting.
232+
``decrypted`` attribute of ``matplotlib.type1font.Type1Font``. This decrypted
233+
data is not yet parsed, but this is a prerequisite for implementing subsetting.
234234

235235
3D contourf polygons placed between levels
236236
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

lib/matplotlib/_mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from ._mathtext_data import (
2323
latex_to_bakoma, latex_to_standard, stix_glyph_fixes, stix_virtual_fonts,
2424
tex2uni)
25-
from .afm import AFM
25+
from ._afm import AFM
2626
from .font_manager import FontProperties, findfont, get_font
2727
from .ft2font import KERNING_DEFAULT
2828

lib/matplotlib/afm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from matplotlib._afm import * # noqa: F401, F403
2+
from matplotlib import _api
3+
_api.warn_deprecated(
4+
"3.6", message="The module %(name)s is deprecated since %(since)s.",
5+
name=f"{__name__}")

lib/matplotlib/backends/_backend_pdf_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import matplotlib as mpl
1111
from .. import font_manager, ft2font
12-
from ..afm import AFM
12+
from .._afm import AFM
1313
from ..backend_bases import RendererBase
1414

1515

lib/matplotlib/backends/backend_pdf.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@
2626
from PIL import Image
2727

2828
import matplotlib as mpl
29-
from matplotlib import _api, _text_helpers, cbook
29+
from matplotlib import _api, _text_helpers, _type1font, cbook, dviread
3030
from matplotlib._pylab_helpers import Gcf
3131
from matplotlib.backend_bases import (
3232
_Backend, FigureCanvasBase, FigureManagerBase, GraphicsContextBase,
3333
RendererBase)
3434
from matplotlib.backends.backend_mixed import MixedModeRenderer
3535
from matplotlib.figure import Figure
3636
from matplotlib.font_manager import findfont, get_font
37-
from matplotlib.afm import AFM
38-
import matplotlib.type1font as type1font
39-
import matplotlib.dviread as dviread
37+
from matplotlib._afm import AFM
4038
from matplotlib.ft2font import (FIXED_WIDTH, ITALIC, LOAD_NO_SCALE,
4139
LOAD_NO_HINTING, KERNING_UNFITTED, FT2Font)
4240
from matplotlib.mathtext import MathTextParser
@@ -982,7 +980,7 @@ def _embedTeXFont(self, fontinfo):
982980
return fontdictObject
983981

984982
# We have a font file to embed - read it in and apply any effects
985-
t1font = type1font.Type1Font(fontinfo.fontfile)
983+
t1font = _type1font.Type1Font(fontinfo.fontfile)
986984
if fontinfo.effects:
987985
t1font = t1font.transform(fontinfo.effects)
988986
fontdict['BaseFont'] = Name(t1font.prop['FontName'])

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import matplotlib as mpl
2424
from matplotlib import _api, cbook, _path, _text_helpers
25-
from matplotlib.afm import AFM
25+
from matplotlib._afm import AFM
2626
from matplotlib.backend_bases import (
2727
_Backend, FigureCanvasBase, FigureManagerBase, GraphicsContextBase,
2828
RendererBase)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy