Skip to content

Scaling between normalized y units and data units #227

@mikessut

Description

@mikessut

I'm trying to add some interactive drawing features and I can't seem to figure how how the y axis gets scaled between normalized units (from 0.0 to 1.0) to units of the data.

For example, when I mouse over a figure, the 'y' value is shown as values of 0 to 1.0. Likewise, if I use ginput(), I always get a y value between 0 and 1.0.

Where is this mapping defined? I think that matplotlib is doing that scaling, but I can't find where the scaling is stored. get_ylim() isn't dependable if you have zoomed in (the zoomed limits are no longer 0 to 1.0).

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions