Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commitde21925
Reparametrize offsetbox calculations in terms of bboxes.
Passing a single bbox instead of (xdescent, ydescent, width, height)separately is easier to follow (see e.g. the changes in VPacker andHPacker, which no longer have to repeatedly pack/unpack whd_list), andavoids having to figure out e.g. the sign of the descents and whetherwidth/height includes the descents, for example.Currently get_offset keeps a back compatible signature (we *could*consider killing the old signature but let's not do that for now), and_get_bbox_and_child_offsets is private because I *may* want to lateralso change the convention to make offsets relative to the bbox (0, 0)point rather than the bbox lower-left corner.1 parenta1da538 commitde21925
File tree
4 files changed
+175
-155
lines changed- doc/api/next_api_changes/deprecations
- lib
- matplotlib
- tests
- mpl_toolkits/axes_grid1
4 files changed
+175
-155
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + |
0 commit comments
Comments
(0)