Skip to content

Commit

Permalink
Nicer plot labels
Browse files Browse the repository at this point in the history
  • Loading branch information
larsson4 committed May 24, 2024
1 parent 9d8735e commit 42ceac6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/python/linelast_cwtrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def speedup_scaling_plot(samples, res, scale_prefix, plt_name = "scaling.png"):
plt.clf()

def create_scaling_plot(samples, res, scale_prefix, plt_name = "plot.png"):
plt.rc('axes', labelsize=14)
solve_time_scaling_plot(samples, res, scale_prefix, plt_name)
relerr_scaling_plot(samples, res, scale_prefix, plt_name)
speedup_scaling_plot(samples, res, scale_prefix, plt_name)
Expand Down Expand Up @@ -213,6 +214,7 @@ def sv_plot(jointname, h_name, v_name, legend_names, plt_name = "sv_plot.png"):
svs_b = get_svs(h_name)
svs_c = get_svs(v_name)

plt.rc('axes', labelsize=18)
plt.plot(range(len(svs_j)), svs_j, label=legend_names[0])
plt.plot(range(len(svs_b)), svs_b, label=legend_names[1])
plt.plot(range(len(svs_c)), svs_c, label=legend_names[2])
Expand Down

0 comments on commit 42ceac6

Please sign in to comment.