From e7a1db826a44f5adf8e35f4f8b8b93bc5e062180 Mon Sep 17 00:00:00 2001 From: Khushikela29 Date: Wed, 8 Jan 2025 23:30:36 +0530 Subject: [PATCH 1/2] Clarify backend support for attach_note in multipage PDF example --- galleries/examples/misc/multipage_pdf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/galleries/examples/misc/multipage_pdf.py b/galleries/examples/misc/multipage_pdf.py index 4e0ef9939be0..8abb5915849e 100644 --- a/galleries/examples/misc/multipage_pdf.py +++ b/galleries/examples/misc/multipage_pdf.py @@ -6,9 +6,10 @@ This is a demo of creating a pdf file with several pages, as well as adding metadata and annotations to pdf files. -If you want to use a multipage pdf file using LaTeX, you need -to use ``from matplotlib.backends.backend_pgf import PdfPages``. -This version however does not support `.attach_note`. +If you want to use a multipage pdf file using LaTeX, you +need to use `from matplotlib.backends.backend_pgf import +PdfPages`. The `pgf` backend, however, does not support `attach_note`, +whereas the `pdf` backend does. """ import datetime From bc68ad1565877303e904be3e6b78e2e15a2a5a78 Mon Sep 17 00:00:00 2001 From: Khushikela29 Date: Sat, 11 Jan 2025 09:42:52 +0530 Subject: [PATCH 2/2] Fixed broken link - Removed unnecessary sentence in the development workflow. - Fixed broken link in `development_workflow.rst`. --- doc/devel/development_workflow.rst | 5 +---- galleries/examples/misc/multipage_pdf.py | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/doc/devel/development_workflow.rst b/doc/devel/development_workflow.rst index 9484202bb146..d92d387152ba 100644 --- a/doc/devel/development_workflow.rst +++ b/doc/devel/development_workflow.rst @@ -138,13 +138,10 @@ The editing workflow Note the ``-am`` options to ``commit``. The ``m`` flag signals that you are going to type a message on the command line. The ``a`` flag stages every file that has been modified, except files listed in ``.gitignore``. For more - information, see `why the -a flag?`_ and the - `git commit `_ manual page. + information, see the `git commit `_ manual page. #. To push the changes up to your forked repo on GitHub, do a ``git push``. -.. _why the -a flag?: http://gitready.com/beginner/2009/01/18/the-staging-area.html - Verify your changes =================== diff --git a/galleries/examples/misc/multipage_pdf.py b/galleries/examples/misc/multipage_pdf.py index 8abb5915849e..e04cd0431f87 100644 --- a/galleries/examples/misc/multipage_pdf.py +++ b/galleries/examples/misc/multipage_pdf.py @@ -6,10 +6,6 @@ This is a demo of creating a pdf file with several pages, as well as adding metadata and annotations to pdf files. -If you want to use a multipage pdf file using LaTeX, you -need to use `from matplotlib.backends.backend_pgf import -PdfPages`. The `pgf` backend, however, does not support `attach_note`, -whereas the `pdf` backend does. """ import datetime