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 e57e280

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

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+4Lines changed: 4 additions & 0 deletions
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",
@@ -1347,6 +1349,8 @@ class EngFormatter(Formatter):
13471349
18: "E",
13481350
21: "Z",
13491351
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.