diff --git a/benches/plot.py b/benches/plot.py index 6dd2102..c3c42a0 100644 --- a/benches/plot.py +++ b/benches/plot.py @@ -9,18 +9,6 @@ # benchmark 1..=10^max rays/triangles max = 4 -cdict = {'red': [[0.0, 0.0, 0.0], - [0.5, 1.0, 1.0], - [1.0, 1.0, 1.0]], - 'green': [[0.0, 0.0, 0.0], - [0.25, 0.0, 0.0], - [0.75, 1.0, 1.0], - [1.0, 1.0, 1.0]], - 'blue': [[0.0, 0.0, 0.0], - [0.5, 0.0, 0.0], - [1.0, 1.0, 1.0]] -} - #newcmp = LinearSegmentedColormap('testCmap', segmentdata=cdict, N=256) cmap = LinearSegmentedColormap.from_list("speedup", ["red", "white", "green"], N=256) @@ -37,7 +25,8 @@ def plot(colormaps): rays = mesh[it.multi_index[1]] samples = 11 if triangles >= 100 and rays >= 100: - # these run longer so less intrinsic noise + # these run longer so less intrinsic noise; save time + # by sampling less samples = 3 proc = Popen([ "cargo",