Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b7be421

Browse filesBrowse files
committed
ticker.ScalarFormatter: Fix type hints & document new attributes
1 parent adaf175 commit b7be421
Copy full SHA for b7be421

File tree

2 files changed

+7
-1
lines changed
Filter options

2 files changed

+7
-1
lines changed
+4Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.pyi
+3-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.