@@ -570,6 +570,10 @@ use:
570570 Or, when creating plots, you can pass it explicitly:
571571
572572.. plot ::
573+ :alt:
574+ A plot of 8 lines, with colors of the Okabe-Ito sequence, from bottom to top:
575+ black, orange, sky blue, bluish green, yellow, blue, vermilion, and reddish
576+ purple.
573577
574578 colors = plt.colormaps['okabe_ito'].colors
575579 x = range(5)
@@ -592,6 +596,9 @@ cycle in place of the default::
592596 plt.style.use('petroff6')
593597
594598.. plot ::
599+ :alt:
600+ A plot of 6 lines, with colors of the Petroff six-color cycle, from bottom to
601+ top: blue, orange, red, dark purple, grey, light purple.
595602
596603 plt.style.use('petroff6')
597604 x = range(5)
@@ -605,6 +612,9 @@ or to load the ``'petroff8'`` color cycle::
605612 plt.style.use('petroff8')
606613
607614.. plot ::
615+ :alt:
616+ A plot of 8 lines, with colors of the Petroff eight-color cycle, from bottom to
617+ top: blue, orange, red, purple, grey, light blue, blue, dark grey.
608618
609619 plt.style.use('petroff8')
610620 x = range(5)
@@ -724,6 +734,7 @@ Text support has been extended to include complex text layout. This support incl
724734
725735 .. plot ::
726736 :show-source-link: False
737+ :alt: The mixed-language text 'Here is some رَقْم in اَلْعَرَبِيَّةُ'.
727738
728739 text = 'Here is some رَقْم in اَلْعَرَبِيَّةُ'
729740 fig = plt.figure(figsize=(6, 1))
@@ -733,6 +744,9 @@ Text support has been extended to include complex text layout. This support incl
733744
734745 .. plot ::
735746 :show-source-link: False
747+ :alt:
748+ A rightwards arrow pointing from the individual letters 'f', 'f', and 'i', to
749+ the 'ffi' ligature.
736750
737751 text = 'f\N {Hair Space}f\N {Hair Space}i \N {Rightwards Arrow} ffi'
738752 fig = plt.figure(figsize=(3, 1))
@@ -742,6 +756,9 @@ Text support has been extended to include complex text layout. This support incl
742756
743757 .. plot ::
744758 :show-source-link: False
759+ :alt:
760+ An "equation" showing the letter 'a' plus a circumflex accent plus a tilde
761+ plus the letter 'c' plus a diaeresis, producing a single glyph of all of them.
745762
746763 text = (
747764 'a\N {Combining Circumflex Accent}\N {Combining Double Tilde}'
@@ -780,6 +797,13 @@ These may be toggled with ``+`` or ``-``.
780797
781798.. plot ::
782799 :include-source:
800+ :alt:
801+ An example of ligatures affecting text, in four lines. The first line is the
802+ title "Ligatures". Each subsequent line shows the style, followed by the
803+ examples "fi", "ffi", "fl", and "st". The second line is the default, where all
804+ but "st" use ligatures. The third line has disabled ligatures and all examples
805+ are drawn as individual glyphs. The fourth line has enabled discretionary
806+ ligatures and all examples, including the "st", use ligatures.
783807
784808 fig = plt.figure(figsize=(7, 3))
785809
@@ -822,6 +846,13 @@ Sámi family of languages in the Latin alphabet (vs English).
822846
823847.. plot ::
824848 :include-source:
849+ :alt:
850+ An example of how text language affects rendering, in four lines. The first line
851+ lists the Unicode code point '\U 00000431`, which is the Cyrillic small letter BE.
852+ The second line then shows the rendering when the language is set to Serbian vs
853+ set to Russian. The third line lists the Unicode code point '\U 0000014a`, which
854+ is the Latin capital letter ENG. The fourth line then shows the rendering when
855+ the language is set to Inari Sámi vs set to English.
825856
826857 fig = plt.figure(figsize=(7, 3))
827858
0 commit comments