Skip to content

Re-evaluate Cairo's path size limit #3803

@ayr0

Description

@ayr0

Recently I've been frequently encountering the path size limitation in matplotlib for the Cairo backend. I decided to comment out the relevant check on path size and can report I have not encountered any errors or issues on my linux machine.

I was able to plot several vectors of 5,000,000 points using the Cairo backend without trouble. Can this seemingly arbitrary limit be re-evaluated? It can be a real annoyance when using the Cairo backend.

Tested on:
Matplotlib 1.4.2
Cairo 1.14.0 (with pycairo 1.10.0)
Simply commented out the lines in RendererCairo.draw_path

if len(path.vertices) > 18980:
    raise ValueError("The Cairo backend can not draw paths longer than 18980 points.")

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