Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CPUnetPLOT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CPUnetLOG
CPUnetPLOT
Commits
4245b53f
Commit
4245b53f
authored
May 14, 2017
by
Mario Hock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New option: "--reorder-plots"
Change the order of the plotted lines
parent
791a1d45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
cnl_file_plot.py
cnl_file_plot.py
+10
-1
No files found.
cnl_file_plot.py
View file @
4245b53f
...
...
@@ -105,8 +105,16 @@ def plot_net(ax, cnl_file, args):
## * plot regular *
if
(
not
args
.
sum_only
):
# Change order of the lines that will be plotted
if
(
args
.
reorder_plots
):
cols
=
[
cnl_file
.
net_col_names
[
int
(
index
)
-
1
]
for
index
in
args
.
reorder_plots
]
col_labels
=
[
cnl_file
.
net_col_labels
[
int
(
index
)
-
1
]
for
index
in
args
.
reorder_plots
]
else
:
cols
=
cnl_file
.
net_col_names
col_labels
=
cnl_file
.
net_col_labels
# * plot regular *
cnl_plot
.
plot
(
ax
,
cnl_file
.
x_values
,
cnl_file
.
cols
,
c
nl_file
.
net_col_names
,
cnl_file
.
net_
col_labels
,
alpha
,
cnl_plot
.
plot
(
ax
,
cnl_file
.
x_values
,
cnl_file
.
cols
,
c
ols
,
col_labels
,
alpha
,
color
=
args
.
color
,
ema_only
=
True
if
smooth
else
False
,
smooth
=
smooth
)
...
...
@@ -270,6 +278,7 @@ if __name__ == "__main__":
parser
.
add_argument
(
"-r"
,
"--receive-only"
,
action
=
"store_true"
)
parser
.
add_argument
(
"--nics"
,
nargs
=
'*'
)
parser
.
add_argument
(
"-nl"
,
"--nic-labels"
,
nargs
=
'*'
)
parser
.
add_argument
(
"--reorder-plots"
,
nargs
=
'*'
)
parser
.
add_argument
(
"-c"
,
"--color"
,
type
=
str
,
nargs
=
'*'
,
help
=
"see: http://matplotlib.org/api/colors_api.html"
)
...
...
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