Skip to content

Matplotlib backend: 'diamond' shape is too small, edges do not connect to it #751

Open
@szhorvat

Description

@szhorvat

Describe the bug

With the Matplotlib backend, the 'diamond' shape has two problems:

  • It is visually much smaller than other shapes. All shapes should appear to be the same size.
  • Edges do not connect to it. Up- and down-triangles also suffer from this.

To reproduce

igraph.plot(Graph.Full(3), backend='matplotlib', vertex_size=60, vertex_color='blue', vertex_shape=['rectangle', 'circle', 'diamond'])
image

The Cairo backend does not suffer from this (although it does cut the edges of the drawing off)

igraph.plot(Graph.Full(3), backend='cairo', vertex_size=60, vertex_color='blue', vertex_shape=['rectangle', 'circle', 'diamond'])
image

Version information

0.11.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions