diff --git a/figures/cpu_matvec.pdf b/figures/cpu_matvec.pdf index 4c96524..2cd1276 100644 Binary files a/figures/cpu_matvec.pdf and b/figures/cpu_matvec.pdf differ diff --git a/figures/kernels.pdf b/figures/kernels.pdf index 275de95..2ee3d86 100644 Binary files a/figures/kernels.pdf and b/figures/kernels.pdf differ diff --git a/figures/mlfmm_bw.pdf b/figures/mlfmm_bw.pdf index a1f21a5..bab88f6 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 a0dfea9..0d26a4d 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 bc199b9..f87a2ca 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 d7fbef8..ad45c8d 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 7dc514c..f384805 100644 --- a/figures/plots.py +++ b/figures/plots.py @@ -1,6 +1,7 @@ import numpy as np import seaborn as sns import matplotlib.pyplot as plt +import math sns.set(style="white", context="talk") plt.rcdefaults() DPI=600 @@ -11,7 +12,7 @@ def autolabel(ax, rect): """ height = rect.get_height() ax.text(rect.get_x() + rect.get_width()/2., 1.05*height, - '%d' % int(height), + '%d' % int(round(height)), ha='center', va='bottom') path = 'figures/cpu_matvec' @@ -38,7 +39,7 @@ path='figures/mlfmm_bw' width=0.33 fig, ax = plt.subplots() systems = ('1T', "32T", "1 GPU" ,"4 GPU", "16 GPU") -mlfmm = (1.50e6, 8.64e4, 2.78e4, 7.01e3, 1.89e3) +mlfmm = (1.50e6, 8.64e4, 2.783779e4, 7.01e3, 1.89e3) num = (45,45,45,45,47) x_pos = np.arange(len(systems)) rects = ax.bar([p-width/2 for p in x_pos], [i/j for i,j in zip(mlfmm,num)], color='darkgray', log=True, width=width)