From 9045c36ede78de26920a9f3049633919e41867e4 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Thu, 28 May 2026 00:26:56 +0200 Subject: [PATCH] DOC: Reorder examples subgalleries ... using more semantic grouping --- doc/sphinxext/gallery_order.py | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/doc/sphinxext/gallery_order.py b/doc/sphinxext/gallery_order.py index 95ebf86b5193..1218c478bbf4 100644 --- a/doc/sphinxext/gallery_order.py +++ b/doc/sphinxext/gallery_order.py @@ -12,21 +12,38 @@ UNSORTED = "unsorted" examples_order = [ + # plotting data '../galleries/examples/lines_bars_and_markers', '../galleries/examples/images_contours_and_fields', - '../galleries/examples/subplots_axes_and_figures', '../galleries/examples/statistics', '../galleries/examples/pie_and_polar_charts', + # figure, Axes, subplots + '../galleries/examples/subplots_axes_and_figures', + # axis properties + '../galleries/examples/ticks', + '../galleries/examples/spines', + '../galleries/examples/scales', + # decorations, individual artists '../galleries/examples/text_labels_and_annotations', - '../galleries/examples/color', '../galleries/examples/shapes_and_collections', + # styling + '../galleries/examples/color', '../galleries/examples/style_sheets', + # interfaces '../galleries/examples/pyplots', '../galleries/examples/axes_grid1', '../galleries/examples/axisartist', - '../galleries/examples/showcase', + '../galleries/examples/mplot3d', + # animation, interactivity + '../galleries/examples/animation', + '../galleries/examples/widgets', + '../galleries/examples/event_handling', + '../galleries/examples/user_interfaces', UNSORTED, - '../galleries/examples/userdemo', + '../galleries/examples/misc', + # nice and special visualizations + '../galleries/examples/showcase', + '../galleries/examples/specialty_plots', ] tutorials_order = [