| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| 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 | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 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 | ||
|---|---|---|---|---|
| Expand Up | @@ -16,7 +16,7 @@ from collections.abc import Callable, Iterable, Sequence | |||
| from typing import Literal | ||||
| from .typing import ColorType | ||||
|
|
||||
| class ClabelText(Text): ... | ||||
|
|
||||
|
Comment thread
Copy link
Copy Markdown
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. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityRemove this line instead.
Suggested change
Sorry, something went wrong.
All reactions
|
||||
|
|
||||
| class ContourLabeler: | ||||
| labelFmt: str | Formatter | Callable[[float], str] | dict[float, str] | ||||
| Expand All | @@ -41,15 +41,8 @@ class ContourLabeler: | |||
| rightside_up: bool = ..., | ||||
| zorder: float | None = ... | ||||
| ) -> list[Text]: ... | ||||
| @property | ||||
| def labelFontProps(self) -> FontProperties: ... | ||||
| @property | ||||
| def labelFontSizeList(self) -> list[float]: ... | ||||
| @property | ||||
| def labelTextsList(self) -> list[Text]: ... | ||||
| def print_label(self, linecontour: ArrayLike, labelwidth: float) -> bool: ... | ||||
| def too_close(self, x: float, y: float, lw: float) -> bool: ... | ||||
| def set_label_props(self, label: Text, text: str, color: ColorType) -> None: ... | ||||
| def get_text( | ||||
| self, | ||||
| lev: float, | ||||
| Expand Down | ||||
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.