Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In version 0.10.5 or later, ax.texts is empty. #760

Open
136s opened this issue Feb 16, 2024 · 0 comments
Open

In version 0.10.5 or later, ax.texts is empty. #760

136s opened this issue Feb 16, 2024 · 0 comments

Comments

@136s
Copy link

136s commented Feb 16, 2024

Describe the bug
In v0.10.4, a list of matplotlib.text.Text was included in ax drawn with ig.plot(g, target=ax), but not in v0.10.5 or the latest version.

To reproduce

import igraph as ig
import matplotlib
import matplotlib.pyplot as plt

print("python-igraph="+ig.__version__)
print("matplotlib="+matplotlib.__version__)

fig, ax = plt.subplots()
g = ig.Graph()
for i in range(10):
    g.add_vertex(label=i)

ig.plot(g, target=ax)
print(ax.texts)

Expected result (v0.10.4)

python-igraph=0.10.4
matplotlib=3.8.3
<Axes.ArtistList of 10 texts>

Unexpected result (v0.10.5)

python-igraph=0.10.5
matplotlib=3.8.3
<Axes.ArtistList of 0 texts>

Version information
python-igraph: 0.10.5 or later
Python 3.11.7
Windows 10

@136s 136s changed the title In version 0.10.5 or later, matplotlib.axes._axes.Axes.texts() is empty. In version 0.10.5 or later, ax.texts() is empty. Feb 16, 2024
@136s 136s changed the title In version 0.10.5 or later, ax.texts() is empty. In version 0.10.5 or later, ax.texts is empty. Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant