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

Undirected multigraph edges are filled polygons in Matplotlib #731

Closed
vnmabus opened this issue Nov 3, 2023 · 4 comments · Fixed by #732
Closed

Undirected multigraph edges are filled polygons in Matplotlib #731

vnmabus opened this issue Nov 3, 2023 · 4 comments · Fixed by #732
Assignees
Labels
plotting Issues related to plotting graphs in igraph in general

Comments

@vnmabus
Copy link

vnmabus commented Nov 3, 2023

Describe the bug
Plotting undirected multigraphs with the Matplotlib backend, the resulting image has filled edges.

To reproduce
Use the following code:

import igraph as ig
import matplotlib.pyplot as plt

g = ig.Graph([(0,1), (1,0), (1,2), (2,0)], directed=False)

fig, ax = plt.subplots()
ig.plot(g, target=ax)

This generates the following image:
graph

Version information
I am using version 0.11.2 installed using pip.

@iosonofabio iosonofabio self-assigned this Nov 3, 2023
@iosonofabio
Copy link
Member

Thank you @vnmabus

I thought I had caught all cases but evidently I missed one. I'll make a PR over the weekend.

iosonofabio added a commit to iosonofabio/python-igraph that referenced this issue Nov 4, 2023
@iosonofabio
Copy link
Member

I made a quick PR for this, it's under control and apologies for the incorrect behaviour.

If this passes CI and is merged quickly, we could consider a hotfix minor release, depending on @ntamas 's availability over the next few days.

@iosonofabio iosonofabio added the plotting Issues related to plotting graphs in igraph in general label Nov 4, 2023
@szhorvat
Copy link
Member

szhorvat commented Nov 4, 2023

I'd like a C release quite soon (one more PR to merge). Let's do the two releases together

@ntamas ntamas linked a pull request Nov 5, 2023 that will close this issue
@ntamas
Copy link
Member

ntamas commented Nov 20, 2023

This is now fixed in 0.11.3, which will be on PyPI in a few hours or so.

@ntamas ntamas closed this as completed Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plotting Issues related to plotting graphs in igraph in general
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants