Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
CPUnetLOG
CPUnetPLOT
Commits
08c5e962
Commit
08c5e962
authored
May 14, 2017
by
Mario Hock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format 1.xG correctly
parent
26223951
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
plot_ticks.py
plot_ticks.py
+2
-0
No files found.
plot_ticks.py
View file @
08c5e962
...
...
@@ -156,5 +156,7 @@ def format_yticks(y, pos=None):
return
"{:.0f}K "
.
format
(
float
(
y
)
/
1000
)
elif
1000000
<=
y
<
1000000000
:
return
"{:.0f}M "
.
format
(
float
(
y
)
/
1000000
)
elif
1000
<
int
(
y
/
1000000
)
<
2000
:
return
"{:.1f}G "
.
format
(
float
(
y
)
/
1000000000
)
else
:
return
"{:.0f}G "
.
format
(
float
(
y
)
/
1000000000
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment