Attempting to set font family to a graph in R causes plotting error

Bug #741041 reported by Alastair Droop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igraph
Fix Released
Medium
Gábor Csárdi

Bug Description

I attempt to set the font family of graph vertices to "sans". This causes the plot function to fail:

> g <- watts.strogatz.game(1, 100, 5, 0.05)
> V(g)$label.family <- "sans"
> plot(g)
Error in text.default(x, y, labels = labels, col = label.color, family = label.family, :
  graphical parameter "family" has the wrong length
>

Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

Confirmed. As a workaround, you can specify the font family as an argument to plot().

Changed in igraph:
status: New → Confirmed
assignee: nobody → Gábor Csárdi (gabor.csardi)
importance: Undecided → Medium
Changed in igraph:
milestone: none → 0.6
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

Fixed in revision #2787 (0.6-main).

Changed in igraph:
status: Confirmed → Fix Released
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote : Continue on github

The development of igraph has moved to github, so please do not comment on this bug here. You are of course welcome to comment on github, here:
https://github.com/igraph/igraph/issues/213

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.