8000 ticker.ScalarFormatter: Fix type hints & document new attributes · matplotlib/matplotlib@b7be421 · GitHub
[go: up one dir, main page]

Skip to content

Commit b7be421

Browse files
committed
ticker.ScalarFormatter: Fix type hints & document new attributes
1 parent adaf175 commit b7be421

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Miscellaneous Changes
2+
---------------------
3+
4+
- The `matplotlib.ticker.ScalarFormatter` class has gained a new instantiating parameter ``usetex``.

lib/matplotlib/ticker.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ class ScalarFormatter(Formatter):
6969
) -> None: ...
7070
offset: float
7171
def get_usetex(self) -> bool: ...
72-
def set_usetex(self, val: bool | float) -> None: ...
72+
def set_usetex(self, val: bool) -> None: ...
7373
@property
7474
def usetex(self) -> bool: ...
75+
@usetex.setter
76+
def usetex(self, val: bool) -> None: ...
7577
def get_useOffset(self) -> bool: ...
7678
def set_useOffset(self, val: bool | float) -> None: ...
7779
@property

0 commit comments

Comments
 (0)
0