Skip to content

Incorrect text clipping in presence of multiple subplots #6794

@anntzer

Description

@anntzer

This is a regression in 2.0b3 compared to 1.5.2 (haven't bisected more)

from matplotlib import pyplot as plt
import numpy as np

np.random.seed(1)
fig, (ax1, ax2) = plt.subplots(2)
for x, y in np.random.rand(10, 2):
    ax1.text(x, y, "foo", clip_on=True)
    ax2.text(x, y, "foo")
plt.show()

1.5.2 displays everything fine
152
2.0b3 clips away all text objects in the top axes
20b3
(so I'm marking this as 2.0 but feel free to change it)

The texts actually appear to be clipped to the "wrong" place and use the wrong zorder: you can see them appear "behind the axes" if you pan the axes as below:
panned

Metadata

Metadata

Assignees

Labels

Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy