2626 _pop_rc ,
2727 _translate_loc ,
2828 context ,
29- dependencies ,
3029 docstring ,
3130 texts ,
3231 warnings ,
@@ -466,7 +465,7 @@ def _canvas_preprocess(self, *args, **kwargs):
466465 # call in this function before proceeding with print_figure).
467466 ctx1 = fig ._context_adjusting (cache = (method != 'print_figure' ))
468467 ctx2 = fig ._context_authorized () # backends might call set_constrained_layout()
469- ctx3 = rc .context (fig ._mathtext_context ) # draw with figure-specific setting
468+ ctx3 = rc .context (fig ._render_context ) # draw with figure-specific setting
470469 with ctx1 , ctx2 , ctx3 :
471470 fig .auto_layout ()
472471 return func (self , * args , ** kwargs )
@@ -715,7 +714,7 @@ def __init__(
715714 self ._is_adjusting = False
716715 self ._is_authorized = False
717716 self ._includepanels = None
718- self ._mathtext_context = {}
717+ self ._render_context = {}
719718 rc_kw , rc_mode = _pop_rc (kwargs )
720719 kw_format = _pop_params (kwargs , self ._format_signature )
721720 with self ._context_authorized ():
@@ -1468,6 +1467,7 @@ def _align_content(): # noqa: E306
14681467 gs ._auto_layout_tight (renderer )
14691468 _align_content ()
14701469
1470+ @warnings ._rename_kwargs ('0.10' , mathtext_fallback = 'pplt.rc.mathtext_fallback = {}' )
14711471 @docstring ._snippet_manager
14721472 def format (
14731473 self , axs = None , * ,
@@ -1477,7 +1477,7 @@ def format(
14771477 blabels = None , bottomlabels = None , bottomlabels_kw = None ,
14781478 tlabels = None , toplabels = None , toplabels_kw = None ,
14791479 rowlabels = None , collabels = None , # aliases
1480- includepanels = None , mathtext_fallback = None , ** kwargs ,
1480+ includepanels = None , ** kwargs ,
14811481 ):
14821482 """
14831483 Modify figure-wide labels and call ``format`` for the
@@ -1523,24 +1523,16 @@ def format(
15231523 kw = rc .fill ({'facecolor' : 'figure.facecolor' }, context = True )
15241524 self .patch .update (kw )
15251525
1526- # Update text drawing behavior
1527- if includepanels is not None :
1528- self ._includepanels = includepanels
1529- if mathtext_fallback is not None :
1530- if dependencies ._version_mpl >= 3.4 :
1531- context = {'mathtext.fallback' : mathtext_fallback if isinstance (mathtext_fallback , str ) else 'cm' if mathtext_fallback else None } # noqa: E501
1532- else :
1533- context = {'mathtext.fallback_to_cm' : bool (mathtext_fallback )}
1534- self ._mathtext_context = context
1535-
1536- # Update super title and label padding
1526+ # Update super title and label spacing
15371527 pad = rc .find ('suptitle.pad' , context = True ) # super title
15381528 if pad is not None :
15391529 self ._suptitle_pad = pad
15401530 for side in tuple (self ._suplabel_pad ): # super labels
15411531 pad = rc .find (side + 'label.pad' , context = True )
15421532 if pad is not None :
15431533 self ._suplabel_pad [side ] = pad
1534+ if includepanels is not None :
1535+ self ._includepanels = includepanels
15441536
15451537 # Update super title and labels text and settings
15461538 suptitle_kw = suptitle_kw or {}
0 commit comments