Advertisement
tristanStrange

not pretty graph

Dec 4th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. X = range(1, 8)
  2. Y = [42586, 5298, 1145, 128, 36, 11, 2]
  3.  
  4. bar(X, Y, facecolor='#9999ff')
  5.  
  6. axes = gca()
  7. axes.set_yscale('log')
  8.  
  9. xticks(X, X, ha='center')
  10.  
  11. for x, y in zip(X, Y):
  12.     text(x + 0.4, y + 0.5, '%i' % y, ha='center', va='bottom')
  13.  
  14. plot()
  15. show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement