python-igraph icon indicating copy to clipboard operation
python-igraph copied to clipboard

In version 0.10.5 or later, `ax.texts` is empty.

Open 136s opened this issue 1 year ago • 1 comments

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 avatar Feb 16 '24 06:02 136s

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 27 '25 17:04 stale[bot]