From 07434e21c5d67988362d9f2b9fb7e09bc48fb1ce Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Sat, 17 Jun 2023 11:26:56 -0600 Subject: [PATCH 1/3] DOC: visible TOC to the sphinx gallery user/explain READMEs Note this is manual. I don't think there is an automatic way to make these visible. --- galleries/users_explain/animations/README.txt | 6 ++++++ galleries/users_explain/colors/README.txt | 11 +++++++++++ galleries/users_explain/index.rst | 2 +- galleries/users_explain/text/README.txt | 11 +++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/galleries/users_explain/animations/README.txt b/galleries/users_explain/animations/README.txt index a7d37a0242e6..4d1d49dbac98 100644 --- a/galleries/users_explain/animations/README.txt +++ b/galleries/users_explain/animations/README.txt @@ -7,3 +7,9 @@ generate animations using the `~matplotlib.animation` module. An animation is a sequence of frames where each frame corresponds to a plot on a `~matplotlib.figure.Figure`. This tutorial covers a general guideline on how to create such animations and the different options available. + +.. toctree:: + :maxdepth: 1 + + animations + blitting \ No newline at end of file diff --git a/galleries/users_explain/colors/README.txt b/galleries/users_explain/colors/README.txt index 79f49c523f56..248c1a5d2f6c 100644 --- a/galleries/users_explain/colors/README.txt +++ b/galleries/users_explain/colors/README.txt @@ -11,3 +11,14 @@ these colormaps look, how you can create your own, and how you can customize colormaps for your use case. For even more information see the :ref:`examples page `. + +.. toctree:: + :maxdepth: 1 + + colors + colorbar_only + colormap-manipulation + colormapnorms + colormaps + + diff --git a/galleries/users_explain/index.rst b/galleries/users_explain/index.rst index fce933fee4e2..01f3e122357f 100644 --- a/galleries/users_explain/index.rst +++ b/galleries/users_explain/index.rst @@ -9,7 +9,7 @@ Using Matplotlib ---------------- .. toctree:: - :maxdepth: 1 + :maxdepth: 2 quick_start figure/index diff --git a/galleries/users_explain/text/README.txt b/galleries/users_explain/text/README.txt index 9046e991c924..695d9e2a07dc 100644 --- a/galleries/users_explain/text/README.txt +++ b/galleries/users_explain/text/README.txt @@ -12,3 +12,14 @@ rotations, and Unicode support. These tutorials cover the basics of working with text in Matplotlib. For even more information see the :ref:`examples page `. + +.. toctree:: + :maxdepth: 1 + + text_intro + text_props + annotations + fonts + mathtext + pgf + usetex \ No newline at end of file From e96ee1f15823afa08c0f4682dd763a7ab0bf5986 Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Sat, 17 Jun 2023 11:34:59 -0600 Subject: [PATCH 2/3] DOC: make user/explain/index cards --- galleries/users_explain/index.rst | 96 ++++++++++++++++++++++++++----- 1 file changed, 81 insertions(+), 15 deletions(-) diff --git a/galleries/users_explain/index.rst b/galleries/users_explain/index.rst index 01f3e122357f..fc91748377f0 100644 --- a/galleries/users_explain/index.rst +++ b/galleries/users_explain/index.rst @@ -3,21 +3,87 @@ .. redirect-from:: /users/explain - - Using Matplotlib ---------------- -.. toctree:: - :maxdepth: 2 - - quick_start - figure/index - axes/index - artists/index - customizing - axis/index - colors/index - text/index - animations/index - toolkits/index +.. grid:: 1 1 2 2 + + .. grid-item-card:: + :padding: 2 + + .. toctree:: + :maxdepth: 2 + + quick_start + + .. grid-item-card:: + :padding: 2 + + .. toctree:: + :maxdepth: 2 + + figure/index + + .. grid-item-card:: + :padding: 2 + + .. toctree:: + :maxdepth: 2 + + axes/index + + .. grid-item-card:: + :padding: 2 + + .. toctree:: + :maxdepth: 2 + + artists/index + + .. grid-item-card:: + :padding: 2 + + .. toctree:: + :maxdepth: 2 + + customizing + + .. grid-item-card:: + :padding: 2 + + .. toctree:: + :maxdepth: 2 + + axis/index + + .. grid-item-card:: + :padding: 2 + + .. toctree:: + :maxdepth: 2 + + colors/index + + .. grid-item-card:: + :padding: 2 + + .. toctree:: + :maxdepth: 2 + + text/index + + .. grid-item-card:: + :padding: 2 + + .. toctree:: + :maxdepth: 2 + + animations/index + + .. grid-item-card:: + :padding: 2 + + .. toctree:: + :maxdepth: 2 + + toolkits/index From fd4d960b81fc4b2bcaf649a64b83276e713cbec2 Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Sat, 17 Jun 2023 21:32:07 -0400 Subject: [PATCH 3/3] DOC: make user/explain/index cards --- galleries/users_explain/animations/README.txt | 2 +- galleries/users_explain/colors/README.txt | 2 -- galleries/users_explain/text/README.txt | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/galleries/users_explain/animations/README.txt b/galleries/users_explain/animations/README.txt index 4d1d49dbac98..f27c9d60575e 100644 --- a/galleries/users_explain/animations/README.txt +++ b/galleries/users_explain/animations/README.txt @@ -12,4 +12,4 @@ how to create such animations and the different options available. :maxdepth: 1 animations - blitting \ No newline at end of file + blitting diff --git a/galleries/users_explain/colors/README.txt b/galleries/users_explain/colors/README.txt index 248c1a5d2f6c..47937235de36 100644 --- a/galleries/users_explain/colors/README.txt +++ b/galleries/users_explain/colors/README.txt @@ -20,5 +20,3 @@ For even more information see the :ref:`examples page `. colormap-manipulation colormapnorms colormaps - - diff --git a/galleries/users_explain/text/README.txt b/galleries/users_explain/text/README.txt index 695d9e2a07dc..0de164732776 100644 --- a/galleries/users_explain/text/README.txt +++ b/galleries/users_explain/text/README.txt @@ -22,4 +22,4 @@ For even more information see the :ref:`examples page