@@ -49,6 +49,7 @@ class __getattr__:
49
49
# module-level deprecations
50
50
ps_backend_helper = _api .deprecated ("3.7" , obj_type = "" )(
51
51
property (lambda self : PsBackendHelper ()))
52
+ psDefs = _api .deprecated ("3.8" , obj_type = "" )(property (lambda self : _psDefs ))
52
53
53
54
54
55
papersize = {'letter' : (8.5 , 11 ),
@@ -921,13 +922,13 @@ def print_figure_impl(fh):
921
922
f"%%EndComments\n " ,
922
923
end = "" , file = fh )
923
924
924
- Ndict = len (psDefs )
925
+ Ndict = len (_psDefs )
925
926
print ("%%BeginProlog" , file = fh )
926
927
if not mpl .rcParams ['ps.useafm' ]:
927
928
Ndict += len (ps_renderer ._character_tracker .used )
928
929
print ("/mpldict %d dict def" % Ndict , file = fh )
929
930
print ("mpldict begin" , file = fh )
930
- print ("\n " .join (psDefs ), file = fh )
931
+ print ("\n " .join (_psDefs ), file = fh )
931
932
if not mpl .rcParams ['ps.useafm' ]:
932
933
for font_path , chars \
933
934
in ps_renderer ._character_tracker .used .items ():
@@ -1030,9 +1031,9 @@ def _print_figure_tex(
1030
1031
{ get_bbox_header (bbox )[0 ]}
1031
1032
%%EndComments
1032
1033
%%BeginProlog
1033
- /mpldict { len (psDefs )} dict def
1034
+ /mpldict { len (_psDefs )} dict def
1034
1035
mpldict begin
1035
- { "" .join (psDefs )}
1036
+ { "" .join (_psDefs )}
1036
1037
end
1037
1038
%%EndProlog
1038
1039
mpldict begin
@@ -1297,7 +1298,7 @@ def pstoeps(tmpfile, bbox=None, rotated=False):
1297
1298
1298
1299
# The usage comments use the notation of the operator summary
1299
1300
# in the PostScript Language reference manual.
1300
- psDefs = [
1301
+ _psDefs = [
1301
1302
# name proc *_d* -
1302
1303
# Note that this cannot be bound to /d, because when embedding a Type3 font
1303
1304
# we may want to define a "d" glyph using "/d{...} d" which would locally
0 commit comments