Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Removal of deprecations for Contour#26907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| ``contour.ClabelText`` and ``ContourLabeler.set_label_props`` | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| ... are removed. | ||
| Use ``Text(..., transform_rotates_text=True)`` as a replacement for | ||
| ``contour.ClabelText(...)`` and ``text.set(text=text, color=color, | ||
| fontproperties=labeler.labelFontProps, clip_box=labeler.axes.bbox)`` as a | ||
| replacement for the ``ContourLabeler.set_label_props(label, text, color)``. | ||
| ``ContourLabeler`` attributes | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
DHClimber marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| The ``labelFontProps``, ``labelFontSizeList``, and ``labelTextsList`` | ||
| attributes of `.ContourLabeler` have been removed. Use the ``labelTexts`` | ||
| attribute and the font properties of the corresponding text objects instead. | ||
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -16,7 +16,7 @@ from collections.abc import Callable, Iterable, Sequence | ||||
| from typing import Literal | ||||
| from .typing import ColorType | ||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Remove this line instead. Suggested change | ||||
| class ContourLabeler: | ||||
| labelFmt: str | Formatter | Callable[[float], str] | dict[float, str] | ||||
| @@ -41,15 +41,8 @@ class ContourLabeler: | ||||
| rightside_up: bool = ..., | ||||
| zorder: float | None = ... | ||||
| ) -> list[Text]: ... | ||||
| def print_label(self, linecontour: ArrayLike, labelwidth: float) -> bool: ... | ||||
| def too_close(self, x: float, y: float, lw: float) -> bool: ... | ||||
| def get_text( | ||||
| self, | ||||
| lev: float, | ||||