Changes to bring page count down.
Made plots smaller, moved legends outside of plot (so smallersize is still readable), moved plotting code into external modules.
This commit is contained in:
@@ -7,6 +7,26 @@ Created on Fri May 2 12:21:40 2014
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
|
||||
def plot_errorbars(bars, xlims):
|
||||
|
||||
i = 1.0
|
||||
for bar in bars:
|
||||
plt.errorbar([bar[0]], [i], xerr=[bar[1]], fmt='o', label=bar[2] , capthick=2, capsize=10)
|
||||
i += 0.2
|
||||
|
||||
plt.ylim(0, 2)
|
||||
plt.xlim(xlims[0], xlims[1])
|
||||
show_legend()
|
||||
plt.gca().axes.yaxis.set_ticks([])
|
||||
plt.show()
|
||||
|
||||
|
||||
|
||||
|
||||
def show_legend():
|
||||
plt.legend(loc='center left', bbox_to_anchor=(1, 0.5))
|
||||
|
||||
|
||||
def bar_plot(pos, ylim=(0,1), title=None):
|
||||
plt.cla()
|
||||
ax = plt.gca()
|
||||
|
||||
Reference in New Issue
Block a user