@@ -2401,9 +2401,8 @@ class PdfPages:
24012401
24022402 Notes
24032403 -----
2404- In reality :class:`PdfPages` is a thin wrapper around :class:`PdfFile`, in
2405- order to avoid confusion when using :func:`~matplotlib.pyplot.savefig` and
2406- forgetting the format argument.
2404+ In reality `PdfPages` is a thin wrapper around `PdfFile`, in order to avoid
2405+ confusion when using `~.pyplot.savefig` and forgetting the format argument.
24072406 """
24082407 __slots__ = ('_file' , 'keep_empty' )
24092408
@@ -2414,9 +2413,9 @@ def __init__(self, filename, keep_empty=True, metadata=None):
24142413 Parameters
24152414 ----------
24162415 filename : str or path-like or file-like
2417- Plots using :meth: `PdfPages.savefig` will be written to a file at
2418- this location. The file is opened at once and any older file with
2419- the same name is overwritten.
2416+ Plots using `PdfPages.savefig` will be written to a file at this
2417+ location. The file is opened at once and any older file with the
2418+ same name is overwritten.
24202419 keep_empty : bool, optional
24212420 If set to False, then empty pdf files will be deleted automatically
24222421 when closed.
@@ -2464,18 +2463,17 @@ def infodict(self):
24642463
24652464 def savefig (self , figure = None , ** kwargs ):
24662465 """
2467- Saves a :class:`~matplotlib.figure .Figure` to this file as a new page.
2466+ Saves a ` .Figure` to this file as a new page.
24682467
2469- Any other keyword arguments are passed to
2470- :meth:`~matplotlib.figure.Figure.savefig`.
2468+ Any other keyword arguments are passed to `~.Figure.savefig`.
24712469
24722470 Parameters
24732471 ----------
2474- figure : :class:`~matplotlib.figure .Figure` or int, optional
2472+ figure : ` .Figure` or int, optional
24752473 Specifies what figure is saved to file. If not specified, the
2476- active figure is saved. If a :class:`~matplotlib.figure. Figure`
2477- instance is provided, this figure is saved. If an int is specified,
2478- the figure instance to save is looked up by number.
2474+ active figure is saved. If a `. Figure` instance is provided, this
2475+ figure is saved. If an int is specified, the figure instance to
2476+ save is looked up by number.
24792477 """
24802478 if not isinstance (figure , Figure ):
24812479 if figure is None :
0 commit comments