Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
CPUnetLOG
CPUnetPLOT
Commits
791a1d45
Commit
791a1d45
authored
May 14, 2017
by
Mario Hock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New option: "--legend-col-number"
Adjust number of columns in the legend
parent
08c5e962
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
cnl_file_plot.py
cnl_file_plot.py
+4
-1
No files found.
cnl_file_plot.py
View file @
791a1d45
...
...
@@ -123,7 +123,7 @@ def plot_net(ax, cnl_file, args):
#fontsize=layout.fontsize.legend
)
else
:
l
=
ax
.
legend
(
loc
=
args
.
legend_pos
)
l
=
ax
.
legend
(
loc
=
args
.
legend_pos
,
ncol
=
args
.
legend_col_number
)
ax
.
set_xlim
(
xmin
=
args
.
x_min
)
...
...
@@ -320,6 +320,9 @@ if __name__ == "__main__":
parser
.
add_argument
(
"-l"
,
"--legend-pos"
,
type
=
int
,
help
=
"see: http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.legend"
)
parser
.
add_argument
(
"-ncols"
,
"--legend-col-number"
,
type
=
int
,
default
=
1
,
help
=
"see: http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.legend"
)
## subplots
parser
.
add_argument
(
"-sub"
,
"--subplots"
,
type
=
str
,
nargs
=
'*'
,
...
...
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