Skip to content

Commit

Permalink
Style etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Nov 21, 2023
1 parent be6169b commit 9442cd6
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions mypyc/benchmark_results/benchmark_results_plot_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,39 @@ def read_all_results(input_files):
# In[97]:


results[0:3].plot(kind='bar', stacked=False, width=0.9, title="Startup time")
results[0:3].plot(kind='bar', stacked=False, width=0.9, title="Startup time",
color=["#a00000", "#a0a000",
"#00c000", "#00c030", "#00c060", "#00c090", "#00c0a0",
"#ff0000", "#ff8000",
"#0000ff", "#0060ff", "#00c0ff",
"#a08000", "#c0a000", "#f0c000"])
plt.savefig("Startup time.png")
plt.show()


# In[95]:


results[-2:].plot(kind='bar', stacked=False, width=0.9, title="Extensive computation")
results[-2:].plot(kind='bar', stacked=False, width=0.9,
title="Computation w/o startup time influence",
color=["#a00000", "#a0a000",
"#00a000", "#00b030", "#00c060", "#00d090", "#00e0a0",
"#ff0000", "#ff8000",
"#0000ff", "#0060ff", "#00c0ff",
"#a08000", "#c0a000", "#f0c000"])
plt.savefig("Extensive computation.png")
plt.show()


# In[101]:

results.plot(title="Approximation, incl. startup time")
results.plot(title="Approximation, incl. startup time",
color=["#a00000", "#a0a000",
"#00c000", "#00c030", "#00c060", "#00c090", "#00c0a0",
"#ff0000", "#ff8000",
"#0000ff", "#0060ff", "#00c0ff",
"#a08000", "#c0a000", "#f0c000"],
style=[":", ":", "--", "--", "--", "--", "--"])
plt.savefig("Approximation computation.png")
plt.show()

Expand Down

0 comments on commit 9442cd6

Please sign in to comment.