Skip to content

Request: for non-interactive backends make fig.canvas.draw() force the render #16558

Closed
@pharshalp

Description

@pharshalp

Bug report

Bug summary
https://discourse.matplotlib.org/t/fig-draw-renderer-vs-fig-canvas-draw/20890

When using a non-interactive backend (specifically the PGF backend), I noticed that fig.canvas.draw() isn’t equivalent to fig.draw(fig.canvas.get_renderer()). Can anyone please explain the difference between these two approaches?

(this has been answered) Please see the explanation by @tacaswell on discourse.

Reproducing the last part of the response since it is potentially an actionable item

I suspect that we should add code to the draw methods of the non-interactive backends to force the render, but that needs a bit of thought to make sure we don’t have any unintended consequences of that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions