From 66e1a3f381ae2cf465316078f2d9cfef13a70659 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Fri, 5 Jun 2026 11:48:45 +0200 Subject: [PATCH 1/2] DOC: reorder text, labels and annotations examples --- .../gallery_order.txt | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 galleries/examples/text_labels_and_annotations/gallery_order.txt diff --git a/galleries/examples/text_labels_and_annotations/gallery_order.txt b/galleries/examples/text_labels_and_annotations/gallery_order.txt new file mode 100644 index 000000000000..337eae0171ff --- /dev/null +++ b/galleries/examples/text_labels_and_annotations/gallery_order.txt @@ -0,0 +1,54 @@ +# Explicit example order. See https://matplotlib.org/devdocs/devel/document.html#order-examples + +# text formatting +text_commands +text_fontdict +text_alignment +multiline +autowrap +demo_text_rotation_mode +text_rotation_relative_to_line +rainbow_text +demo_text_path + +# annoations +annotation_basic +annotation_demo +annotation_polar +angles_on_bracket_arrows +fancyarrow_demo +fancytextbox_demo +placing_text_boxes +label_subplots +demo_annotation_box +arrow_demo +angle_annotation + +# legend +legend_demo +legend +custom_legends +figlegend_demo + +# demos +accented_text +dfrac_demo +font_family_rc +font_file +font_table +fonts_demo +fonts_demo_kw +mathtext_asarray +mathtext_demo +mathtext_examples +mathtext_fontfamily_example +stix_fonts_demo +tex_demo +unicode_minus +usetex_baseline_test +usetex_fonteffects + +# other +line_with_text +titles_demo +watermark_text From dde6177b2c2209aafa2c9831d1b789219509083b Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 5 Jun 2026 15:34:27 -0400 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Elliott Sales de Andrade --- .../examples/text_labels_and_annotations/gallery_order.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galleries/examples/text_labels_and_annotations/gallery_order.txt b/galleries/examples/text_labels_and_annotations/gallery_order.txt index 337eae0171ff..2620097be023 100644 --- a/galleries/examples/text_labels_and_annotations/gallery_order.txt +++ b/galleries/examples/text_labels_and_annotations/gallery_order.txt @@ -11,7 +11,7 @@ text_rotation_relative_to_line rainbow_text demo_text_path -# annoations +# annotations annotation_basic annotation_demo annotation_polar