@@ -2399,9 +2399,8 @@ class PdfPages:
23992399
24002400 Notes
24012401 -----
2402- In reality :class:`PdfPages` is a thin wrapper around :class:`PdfFile`, in
2403- order to avoid confusion when using :func:`~matplotlib.pyplot.savefig` and
2404- forgetting the format argument.
2402+ In reality `PdfPages` is a thin wrapper around `PdfFile`, in order to avoid
2403+ confusion when using `~.pyplot.savefig` and forgetting the format argument.
24052404 """
24062405 __slots__ = ('_file' , 'keep_empty' )
24072406
@@ -2412,9 +2411,9 @@ def __init__(self, filename, keep_empty=True, metadata=None):
24122411 Parameters
24132412 ----------
24142413 filename : str or path-like or file-like
2415- Plots using :meth: `PdfPages.savefig` will be written to a file at
2416- this location. The file is opened at once and any older file with
2417- the same name is overwritten.
2414+ Plots using `PdfPages.savefig` will be written to a file at this
2415+ location. The file is opened at once and any older file with the
2416+ same name is overwritten.
24182417 keep_empty : bool, optional
24192418 If set to False, then empty pdf files will be deleted automatically
24202419 when closed.
@@ -2462,18 +2461,17 @@ def infodict(self):
24622461
24632462 def savefig (self , figure = None , ** kwargs ):
24642463 """
2465- Saves a :class:`~matplotlib.figure .Figure` to this file as a new page.
2464+ Saves a ` .Figure` to this file as a new page.
24662465
2467- Any other keyword arguments are passed to
2468- :meth:`~matplotlib.figure.Figure.savefig`.
2466+ Any other keyword arguments are passed to `~.Figure.savefig`.
24692467
24702468 Parameters
24712469 ----------
2472- figure : :class:`~matplotlib.figure .Figure` or int, optional
2470+ figure : ` .Figure` or int, optional
24732471 Specifies what figure is saved to file. If not specified, the
2474- active figure is saved. If a :class:`~matplotlib.figure. Figure`
2475- instance is provided, this figure is saved. If an int is specified,
2476- the figure instance to save is looked up by number.
2472+ active figure is saved. If a `. Figure` instance is provided, this
2473+ figure is saved. If an int is specified, the figure instance to
2474+ save is looked up by number.
24772475 """
24782476 if not isinstance (figure , Figure ):
24792477 if figure is None :
0 commit comments