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 7fe5e4e

Browse filesBrowse files
committed
prevent subticks from being added to zero decade
1 parent b8364c6 commit 7fe5e4e
Copy full SHA for 7fe5e4e

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2346,7 +2346,10 @@ def get_log_range(lo, hi):
23462346
if len(subs) > 1 or subs[0] != 1.0:
23472347
ticklocs = []
23482348
for decade in decades:
2349-
ticklocs.extend(subs * decade)
2349+
if decade == 0:
2350+
ticklocs.append(decade)
2351+
else:
2352+
ticklocs.extend(subs * decade)
23502353
else:
23512354
ticklocs = decades
23522355

0 commit comments

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