| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | - ``Tick.set_label1`` and ``Tick.set_label2`` | ||
| 2 | - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 1 | + ``Tick.set_label``, ``Tick.set_label1`` and ``Tick.set_label2`` | ||
| 2 | + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 3 | 3 | ... are removed. Calling these methods from third-party code usually had no | |
| 4 | 4 | effect, as the labels are overwritten at draw time by the tick formatter. | |
| 5 | 5 | ||
@@ -52,6 +52,10 @@ consistently with ``_ImageBase.set_filterrad``. | |||
| 52 | 52 | The only parameter of ``Annotation.contains`` and ``Legend.contains`` is renamed to *mouseevent* | |
| 53 | 53 | consistently with `.Artist.contains`. | |
| 54 | 54 | ||
| 55 | + Method parameters renamed | ||
| 56 | + ~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 57 | + | ||
| 58 | + The *p* parameter of ``BboxBase.padded`` is renamed to *w_pad*, consistently with the other parameter, *h_pad* | ||
| 55 | 59 | ||
| 56 | 60 | *numdecs* parameter and attribute of ``LogLocator`` | |
| 57 | 61 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2275,7 +2275,7 @@ class LogLocator(Locator): | |||
| 2275 | 2275 | Places ticks at the values ``subs[j] * base**i``. | |
| 2276 | 2276 | """ | |
| 2277 | 2277 | ||
| 2278 | - def __init__(self, base=10.0, subs=(1.0,), numticks=None): | ||
| 2278 | + def __init__(self, base=10.0, subs=(1.0,), *, numticks=None): | ||
| 2279 | 2279 | """ | |
| 2280 | 2280 | Parameters | |
| 2281 | 2281 | ---------- | |
@@ -2306,7 +2306,7 @@ def __init__(self, base=10.0, subs=(1.0,), numticks=None): | |||
| 2306 | 2306 | self._set_subs(subs) | |
| 2307 | 2307 | self.numticks = numticks | |
| 2308 | 2308 | ||
| 2309 | - def set_params(self, base=None, subs=None, numticks=None): | ||
| 2309 | + def set_params(self, base=None, subs=None, *, numticks=None): | ||
| 2310 | 2310 | """Set parameters within this locator.""" | |
| 2311 | 2311 | if base is not None: | |
| 2312 | 2312 | self._base = float(base) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -236,12 +236,14 @@ class LogLocator(Locator): | |||
| 236 | 236 | self, | |
| 237 | 237 | base: float = ..., | |
| 238 | 238 | subs: None | Literal["auto", "all"] | Sequence[float] = ..., | |
| 239 | + *, | ||
| 239 | 240 | numticks: int | None = ..., | |
| 240 | 241 | ) -> None: ... | |
| 241 | 242 | def set_params( | |
| 242 | 243 | self, | |
| 243 | 244 | base: float | None = ..., | |
| 244 | 245 | subs: Literal["auto", "all"] | Sequence[float] | None = ..., | |
| 246 | + *, | ||
| 245 | 247 | numticks: int | None = ..., | |
| 246 | 248 | ) -> None: ... | |
| 247 | 249 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments