plot_sxs.py
Go to the documentation of this file.
00001 #!/usr/bin/python
00002 
00003 import numpy as np
00004 import pickle
00005 import matplotlib.pyplot as plt
00006 
00007 def main():
00008     with open('pickled_mn_std.pkl','rb') as f:
00009         (means, stds) = pickle.load(f)
00010     width = 1./means.shape[1]
00011     ind = np.arange(means.shape[0])*2
00012     
00013 #
00014  #   b = ['']*means.shape[0]
00015     colors=[(1,0,0),
00016             (0,1,0), 
00017             (0,0,1), 
00018             (1,1,0),
00019             (0,1,1),
00020             (0.3,0.3,0.3),
00021             (0.6,0.6,0.6),
00022             (0.6,0,0.3)]
00023     for i in range(means.shape[1]):
00024         for j in range(means.shape[0]):
00025             plt.bar(ind[i]+j*width, means[j,i], width, color=colors[j], yerr=stds[j,i])
00026 
00027     plt.show()
00028 if __name__=='__main__':
00029     main()


wouse
Author(s): Phillip M. Grice, Advisor: Prof. Charlie Kemp, Lab: The Healthcare Robotoics Lab at Georgia Tech.
autogenerated on Wed Nov 27 2013 11:57:42