8000 [ENH]: Cairo backends do not fully support HiDPI · Issue #21024 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
[ENH]: Cairo backends do not fully support HiDPI #21024
Closed
@QuLogic

Description

@QuLogic

Problem

When running examples/misc/pythonic_matplotlib.py on a display set to 150% scaling, QtAgg looks like this:
Screenshot from 2021-09-08 19-37-51
But when running QtCairo, it looks like this:
Screenshot from 2021-09-08 19-38-00
The same thing occurs with the GTK*Cairo renderers in #20988.

Layout is done outside the renderer, so everything is in the right place. However, Cairo only knows about the physical DPI, and renders text and lines with it. Thus they are all the correct size at 200 DPI, but since that is scaled in half to 100 DPI, they all appear smaller than they should be.

Proposed solution

Somehow Agg backends handle this correctly, so we should copy whatever we do there to the Cairo backends.

Additional context and prior art

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0