8000 Fix multiline spacing so it takes into account extra sub/superscripts · matplotlib/matplotlib@a4fdc89 · GitHub
[go: up one dir, main page]

Skip to content

Commit a4fdc89

Browse files
committed
Fix multiline spacing so it takes into account extra sub/superscripts
1 parent 325a7c8 commit a4fdc89

File tree

99 files changed

+1075
-849
lines changed
  • test_text
  • Some content is hidden

    Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

    99 files changed

    +1075
    -849
    lines changed

    doc/users/whats_new.rst

    Lines changed: 6 additions & 4 deletions
    Original file line numberDiff line numberDiff line change
    @@ -230,8 +230,8 @@ so that search results are printed prettily:
    230230
    'ytick.major.size': 4,
    231231
    'ytick.minor.size': 2})
    232232

    233-
    Better vertical text alignment
    234-
    ------------------------------
    233+
    Better vertical text alignment and multi-line text
    234+
    --------------------------------------------------
    235235

    236236
    The vertical alignment of text is now consistent across backends. You
    237237
    may see small differences in text placement, particularly with rotated
    @@ -241,6 +241,9 @@ If you are using a custom backend, note that the `draw_text` renderer
    241241
    method is now passed the location of the baseline, not the location of
    242242
    the bottom of the text bounding box.
    243243

    244+
    Multi-line text will now leave enough room for the height of very tall
    245+
    or very low text, such as superscripts and subscripts.
    246+
    244247
    ``savefig.jpeg_quality`` added to rcParams
    245248
    ------------------------------------------------------------------------------
    246249
    ``rcParam`` value ``savefig.jpeg_quality`` was added so that the user can
    @@ -1152,6 +1155,5 @@ Here are the 0.98.4 notes from the CHANGELOG::
    11521155
    arrays are now converted to arrays with NaNs for consistent
    11531156
    handling of masks and NaNs - MGD and EF
    11541157

    1155-
    Added support for arbitrary rasterization resolutions to the SVG
    1158+
    Added support for arbitrary rasterization resolutions to the SVG
    11561159
    backend. - MW
    1157-
    Binary file not shown.
    Loading
    Loading
    Loading
    Binary file not shown.
    Loading

    lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_05.svg

    Lines changed: 20 additions & 20 deletions
    Loading
    Binary file not shown.
    Loading

    lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_20.svg

    Lines changed: 22 additions & 22 deletions
    Loading
    Binary file not shown.
    Loading

    lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_22.svg

    Lines changed: 23 additions & 23 deletions
    Loading
    Binary file not shown.
    Loading

    lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_27.svg

    Lines changed: 14 additions & 14 deletions
    Loading
    Binary file not shown.
    Loading

    lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_33.svg

    Lines changed: 19 additions & 19 deletions
    Loading
    Binary file not shown.
    Loading

    lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_34.svg

    Lines changed: 20 additions & 20 deletions
    Loading
    Binary file not shown.
    Loading

    0 commit comments

    Comments
     (0)
    0