diff --git a/figures/cpu_matvec.pdf b/figures/cpu_matvec.pdf index adb7f9c..f2a2eed 100644 Binary files a/figures/cpu_matvec.pdf and b/figures/cpu_matvec.pdf differ diff --git a/figures/cpu_matvec.png b/figures/cpu_matvec.png index 7ba64cf..4481825 100644 Binary files a/figures/cpu_matvec.png and b/figures/cpu_matvec.png differ diff --git a/figures/kernels.pdf b/figures/kernels.pdf index 11c00e7..96becfe 100644 Binary files a/figures/kernels.pdf and b/figures/kernels.pdf differ diff --git a/figures/kernels.png b/figures/kernels.png index 96e2f94..eff94f7 100644 Binary files a/figures/kernels.png and b/figures/kernels.png differ diff --git a/figures/mlfmm_bw.pdf b/figures/mlfmm_bw.pdf index 856962b..27e3cd5 100644 Binary files a/figures/mlfmm_bw.pdf and b/figures/mlfmm_bw.pdf differ diff --git a/figures/mlfmm_bw.png b/figures/mlfmm_bw.png index 0d26a4d..0cc3745 100644 Binary files a/figures/mlfmm_bw.png and b/figures/mlfmm_bw.png differ diff --git a/figures/mlfmm_minsky.pdf b/figures/mlfmm_minsky.pdf index c5b8e90..4254dd0 100644 Binary files a/figures/mlfmm_minsky.pdf and b/figures/mlfmm_minsky.pdf differ diff --git a/figures/mlfmm_minsky.png b/figures/mlfmm_minsky.png index ad45c8d..28d80e5 100644 Binary files a/figures/mlfmm_minsky.png and b/figures/mlfmm_minsky.png differ diff --git a/figures/plots.py b/figures/plots.py index 5519558..7b57527 100644 --- a/figures/plots.py +++ b/figures/plots.py @@ -5,6 +5,7 @@ import math sns.set(style="white", context="talk") plt.rcdefaults() DPI=600 +BBOX_INCHES='tight' def autolabel(ax, rect): """ @@ -29,9 +30,9 @@ ax.set_xticklabels(systems) ax.set_ylabel("Execution Time (ms)") handles, labels = ax.get_legend_handles_labels() ax.legend(handles, labels) -sns.despine() -plt.savefig(path+'.pdf') -plt.savefig(path+'.png', dpi=DPI) +sns.despine(trim=True) +plt.savefig(path+'.pdf', bbox_inches=BBOX_INCHES) +plt.savefig(path+'.png', dpi=DPI, bbox_inches=BBOX_INCHES) print path @@ -66,9 +67,9 @@ handles, labels = ax.get_legend_handles_labels() ax.legend(handles, labels) # plt.ylim([1, 1e4]) # ax.set_title('How fast do you want to go today?') -sns.despine() -plt.savefig(path+'.pdf') -plt.savefig(path+'.png', dpi=DPI) +sns.despine(trim=True) +plt.savefig(path+'.pdf', bbox_inches=BBOX_INCHES) +plt.savefig(path+'.png', dpi=DPI, bbox_inches=BBOX_INCHES) print path path='figures/mlfmm_bw' @@ -96,8 +97,8 @@ ax.set_xticks(x_pos) ax.set_xticklabels(systems) ax.set_ylabel("Per-MLFMM Execution Time (ms)") ax2.set_ylabel("Speedup over 1T") -plt.savefig(path+'.pdf') -plt.savefig(path+'.png', dpi=DPI) +plt.savefig(path+'.pdf', bbox_inches=BBOX_INCHES) +plt.savefig(path+'.png', dpi=DPI, bbox_inches=BBOX_INCHES) print path @@ -125,8 +126,8 @@ ax.set_xticks(x_pos) ax.set_xticklabels(systems) ax.set_ylabel("Per-MLFMM Execution Time (ms)") ax2.set_ylabel("Speedup over 1T") -plt.savefig(path+'.pdf') -plt.savefig(path+'.png', dpi=DPI) +plt.savefig(path+'.pdf', bbox_inches=BBOX_INCHES) +plt.savefig(path+'.png', dpi=DPI, bbox_inches=BBOX_INCHES) print path