Skip to content

Commit

Permalink
Fixes y axis labels for graph 2 and 3
Browse files Browse the repository at this point in the history
  • Loading branch information
jahofmann committed Nov 19, 2019
1 parent 1f7cc6a commit 536cdeb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions runtime/examples/tapasco-benchmark/plotResults.py
Expand Up @@ -116,8 +116,8 @@ def format_axes(ax):
w_s = pd.Series([x * 1024 * 1024 for x in write], index)
rw_s = pd.Series([x * 1024 * 1024 for x in readwrite], index)

benchmark_read["{} Read".format(name)] = r_s
benchmark_write["{} Write".format(name)] = w_s
benchmark_read["{} R".format(name)] = r_s
benchmark_write["{} W".format(name)] = w_s
benchmark_readwrite["{} RW".format(name)] = rw_s

il = benchmark["Interrupt Latency"]
Expand Down Expand Up @@ -156,6 +156,7 @@ def format_axes(ax):
data_rw = pd.DataFrame(benchmark_readwrite)

fig, ax = plt.subplots(3, 1)
plt.subplots_adjust(hspace = 0.25)

ax[0].set_xscale("log")
data_r.plot(ax=ax[0])
Expand All @@ -176,7 +177,7 @@ def format_axes(ax):
for name, group in job_throughput.groupby("Device"):
group.plot(ax=ax[2], y="Jobs", x="Threads", label=name)

ax[1].set_xlabel(r'Threads')
ax[1].set_ylabel(r'Jobs Per Second')
ax[2].set_xlabel(r'Threads')
ax[2].set_ylabel(r'Jobs Per Second')

plt.savefig('performance.pdf', format='pdf', bbox_inches='tight')

0 comments on commit 536cdeb

Please sign in to comment.