Skip to content

vertex_label_color does not work in matplotlib backend #709

@pournaki

Description

@pournaki

Describe the bug
When plotting a graph inside a matplotlib axis, the vertex_label_color stays black no matter what.

To reproduce

import igraph as ig
import matplotlib.pyplot as plt

G = ig.Graph.Erdos_Renyi(10,0.1)
G.vs['label'] = range(10)

fig = plt.figure()
ax = fig.add_subplot(1,1,1)
ig.plot(G,
        target=ax,
        vertex_size=.4,
        vertex_color='black',
        vertex_label_color='white',
       )
plt.show()

Version information
'0.10.8', installed through pypi

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