Skip to content

Undirected multigraph edges are filled polygons in Matplotlib #731

@vnmabus

Description

@vnmabus

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.

Metadata

Metadata

Assignees

Labels

plottingIssues related to plotting graphs in igraph in general

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions