-
-
Notifications
You must be signed in to change notification settings - Fork 206
Edges disappear after second identical plot() statement; when using transparent edge colors (alpha < 1). #640
Copy link
Copy link
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorplotting 💹Issues related to plottingIssues related to plotting
Milestone
Description
Describe the bug
Edges disappear after second identical plot() statement when using transparent edge colors (alpha < 1).
Note par()$xpd is flipped from FALSE to TRUE.
To reproduce
library(igraph)
g <- graph_from_literal(A +-+ B)
dev.new(); par()$xpd # xpd = FALSE
# First try after dev.new(), edge is visible.
plot(g, edge.color=rgb(0,0,0,0.3));
par()$xpd # xpd = TRUE
# Second try, edge is not visible.
# Edge becomes visible after save as .pdf").
plot(g, edge.color=rgb(0,0,0,0.3))
# Third try.
par(xpd=FALSE) # reset xpd
plot(g, edge.color=rgb(0,0,0,0.3)) # Edge is visible again.
Version information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behaviorplotting 💹Issues related to plottingIssues related to plotting
