Replace ClabelText by set_transform_rotates_text. · matplotlib/matplotlib@672efa4 · GitHub
Skip to content

Commit 672efa4

Browse files
committed
Replace ClabelText by set_transform_rotates_text.
ContourLabeler previously optionally used a custom Text subclass to ensure that text rotation took place in data space, not in screen space, but this is now available for all Text instances via the transform_rotates_text property, so directly use that. This means that _get_label_text, _add_label, and set_label_props can also directly get inlined into their now only callsite (add_label).
1 parent 6c9c44d commit 672efa4

2 files changed

Lines changed: 29 additions & 48 deletions

File tree

Lines changed: 6 additions & 0 deletions

lib/matplotlib/contour.py

Lines changed: 23 additions & 48 deletions

0 commit comments

Comments
 (0)