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 859d726

Browse filesBrowse files
committed
feat: add new SI prefixes to ticker
1 parent 0e7f6c1 commit 859d726
Copy full SHA for 859d726

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,8 @@ class EngFormatter(Formatter):
13301330

13311331
# The SI engineering prefixes
13321332
ENG_PREFIXES = {
1333+
-30: "q",
1334+
-27: "r",
13331335
-24: "y",
13341336
-21: "z",
13351337
-18: "a",
@@ -1346,7 +1348,9 @@ class EngFormatter(Formatter):
13461348
15: "P",
13471349
18: "E",
13481350
21: "Z",
1349-
24: "Y"
1351+
24: "Y",
1352+
27: "R",
1353+
30: "Q"
13501354
}
13511355

13521356
def __init__(self, unit="", places=None, sep=" ", *, usetex=None,

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.