Commit 92d1577
committed
Deprecate Text.get_prop_tup.
get_prop_tup was intended as a general caching mechanism for reusing
Text layouts, but it ended up only being used by _get_layout (which
backends have to call anyways to handle multiline text). Note that in
fact, if we really wanted to make backends use that info for caching,
whether e.g. the text color needs to be taken into account would likely
depend on the backend's own caching mechanism.
Replace it by a private `_get_layout_cache_key`, which does not take
color into account (color doesn't affect layout), which will later allow
removing a color-must-be-hashable check.1 parent a738d78 commit 92d1577
File tree
2 files changed
+24
-2
lines changed- doc/api/next_api_changes/deprecations
- lib/matplotlib
2 files changed
+24
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
287 | 302 | | |
288 | 303 | | |
289 | 304 | | |
290 | 305 | | |
291 | 306 | | |
292 | 307 | | |
293 | | - | |
| 308 | + | |
294 | 309 | | |
295 | 310 | | |
296 | 311 | | |
| |||
831 | 846 | | |
832 | 847 | | |
833 | 848 | | |
| 849 | + | |
| 850 | + | |
834 | 851 | | |
835 | 852 | | |
836 | 853 | | |
| |||
938 | 955 | | |
939 | 956 | | |
940 | 957 | | |
941 | | - | |
| 958 | + | |
| 959 | + | |
942 | 960 | | |
943 | 961 | | |
944 | 962 | | |
| |||
0 commit comments