GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: misaligned between xticklabel baselines · Issue #32316 · matplotlib/matplotlib

[Bug]: misaligned between xticklabel baselines #32316

New issue
Copy link
New issue
Copy link
Open
#32423
Open
[Bug]: misaligned between xticklabel baselines#32316
#32423
Copy link
Labels
topic: text

Description

@anntzer
anntzer
opened on Sep 8, 2026
Issue body actions

Bug summary

Custom xticklabels can have their baselines misaligned.

Code for reproduction

from pylab import *

mpl.rcdefaults()
mpl.rcParams.update({"font.size": 9})

figure(figsize=(.5, .5), layout="constrained")
# push the xticks next to one another to make things more visible
yticks([]); xlim(-2, 3); xticks([0, 1])
gca().xaxis.set_major_formatter(lambda x, i: "pol." if x == 0 else str(int(x)))
show()

Actual outcome

Image

Note the baseline misalignment between "pol." and "1".

Expected outcome

No misalignment.

Additional information

Although this may seem similar to #31802, this is a regression in 3.11 (present both in agg and in mplcairo) -- I don't know if something else broke a previously accidentally correct alignment, and didn't run a full bisection.
Maybe related to #31107.

Operating system

macos

Matplotlib Version

matplotlib-3.12.0.dev427+g4f7461066; bisected against 3.10.9

Matplotlib Backend

agg or mplcairo

Python version

3.14

Jupyter version

No response

Installation

git checkout

Activity

  1. anntzer
    added
    topic: text
    on Sep 8, 2026
  2. iccir commented on Sep 18, 2026

    @iccir
    iccir
    on Sep 18, 2026
    Contributor
    More actions

    Bisects to 97f4943, assuming that I did git bisect correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: text

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.