Skip to content

tick labels displaced vertically with text.usetex and xcolor #19234

Closed
@darthoctopus

Description

@darthoctopus

Bug report

Tick labels on vertical axes are displaced downwards when text.usetex is set to True.

Code for reproduction

import matplotlib.pyplot as plt
plt.rcParams['text.usetex'] = True
plt.scatter([0, 1, 2, 3], [2,3,1,6])
plt.show()
#

Actual outcome

Screenshot from 2021-01-04 10-51-12

Expected outcome

Screenshot from 2021-01-04 10-51-57

This change happened between 3.2.1 and 3.2.2 (can reproduce in 3.2.2 onwards, inclusive)

Matplotlib version

  • Operating system: Arch Linux
  • Matplotlib version: 3.2.2 onwards
  • Matplotlib backend: module://ipykernel.pylab.backend_inline
  • Python version: 3.9
  • Jupyter version (if applicable): 6.1.6
  • Other libraries: N/A

Matplotlib installed with pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions