diff options
Diffstat (limited to 'py/lineplot.py')
-rw-r--r-- | py/lineplot.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/py/lineplot.py b/py/lineplot.py index efe6b67..83a99b6 100644 --- a/py/lineplot.py +++ b/py/lineplot.py @@ -12,7 +12,7 @@ title = {'nn':'Nearest Neighbor', 'wid':'Pit Width', 'dep':'Pit Depth', 'recl':'Reclusive Population', 'dead':'Cannibalized Individuals'} names = [] -ct = 0 +plt.figure(figsize=(16,9)) def addvar(key, data): deps[key][0].append(mean(data)) @@ -29,7 +29,8 @@ for trial in trials: x = arange(len(names)) width = 0.8; -plt.yticks(x,labels=names) +plt.xticks(x,labels=names) +plt.ylabel('Arbitrary Units') print(names,avg) #for var in varlist: @@ -37,7 +38,8 @@ stdscale = 1/2 for ind in range(len(varlist)): var = varlist[ind] div = mean(deps[var][0]) - plt.bar(x-ind*width/len(varlist), [dep/div for dep in deps[var][0]], + plt.bar(x-ind*width/len(varlist)+width/2, + [dep/div for dep in deps[var][0]], yerr=[stdscale*dep/div for dep in deps[var][1]], capsize=6, label=title[var],alpha=0.5, width=width/len(varlist)) #plt.errorbar(names, [dep/div for dep in deps[var][0]], |