Skip to content

attempting to set font family on edge causes plotting error #37

@gaborcsardi

Description

@gaborcsardi

From @bergsmat on September 18, 2014 13:31

For example (version 0.7.1) ...

library(igraph)
g <- graph.empty() 
g <- add.vertices(g, nv = 3)
g <- add.edges(
  g, 
  c(1,2,2,3), 
  attr = list(
    label=c('foo','bar'),
    label.family=rep('mono',times = 2)
  )
)
plot(g)

... gives ...

Error in text.default(lc.x, lc.y, labels = edge.labels, col = edge.label.color,  : 
  graphical parameter "family" has the wrong length

Like issue #213, but for edges not vertices. Same workaround applies. Code above works for times = 0 but not times = 1 etc.

Copied from original issue: igraph/igraph#681

Metadata

Metadata

Assignees

No one assigned

    Labels

    plotting 💹Issues related to plotting

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions