Skip to content

[Bug]: FigureCanvasCairo.draw is a no-op #24012

Open
@anntzer

Description

@anntzer

Bug summary

FigureCanvasCairo.draw does not actually trigger a draw; it simply inherits the no-op FigureCanvasBase.draw.

See https://gitter.im/matplotlib/matplotlib?at=63305fe1aa0917742928071c for why this can be an issue.

Code for reproduction

# in an ipython shell:
matplotlib.backends.backend_cairo.FigureCanvasCairo.draw??

Actual outcome

a noop draw

Expected outcome

Probably _get_printed_image_surface can be moved into draw? Likely qtcairo/tkcairo/wxcairo could reuse some of that code too for deduplication.

Additional information

No response

Operating system

No response

Matplotlib Version

3.7.0.dev243+g0c5b79244f

Matplotlib Backend

cairo

Python version

No response

Jupyter version

No response

Installation

git checkout

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions