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).
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).