Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@anntzer

Description

@anntzer
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.