Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
e130715f
Commit
e130715f
authored
Sep 19, 2017
by
Peter W. Draper
Browse files
Change legend position to same as threadpool script
Also remove debugging output
parent
ba7d7cdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/plot_tasks.py
View file @
e130715f
...
...
@@ -332,7 +332,9 @@ for rank in ranks:
nrow
=
len
(
typesseen
)
/
5
ax
.
fill_between
([
0
,
0
],
nethread
+
0.5
,
nethread
+
nrow
+
0.5
,
facecolor
=
"white"
)
ax
.
set_ylim
(
0
,
nethread
+
0.5
)
if
data
.
size
>
0
:
if
data
.
size
>
0
and
not
args
.
nolegend
:
ax
.
fill_between
([
0
,
0
],
nethread
+
0.5
,
nethread
+
nrow
+
0.5
,
facecolor
=
"white"
)
ax
.
set_ylim
(
0
,
nethread
+
0.5
)
ax
.
legend
(
loc
=
1
,
shadow
=
True
,
bbox_to_anchor
=
(
0.
,
1.05
,
1.
,
0.2
),
mode
=
"expand"
,
ncol
=
5
)
box
=
ax
.
get_position
()
ax
.
set_position
([
box
.
x0
,
box
.
y0
,
box
.
width
,
box
.
height
*
0.8
])
...
...
@@ -341,7 +343,6 @@ for rank in ranks:
if
mintic
<
0
:
ax
.
plot
([
0
,
0
],
[
0
,
nethread
+
nrow
+
1
],
'k--'
,
linewidth
=
1
)
else
:
print
tic_step
,
mintic
,
tic_step
-
mintic
real_start
=
tic_step
-
mintic
ax
.
plot
([
real_start
,
real_start
],
[
0
,
nethread
+
nrow
+
1
],
'k--'
,
linewidth
=
1
)
ax
.
plot
([
end_t
,
end_t
],
[
0
,
nethread
+
nrow
+
1
],
'k--'
,
linewidth
=
1
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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