Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. for product in prices.keys():
  2.     plt.plot(years,prices[product], label=product)
  3.     plt.ylabel('Preise')
  4.     plt.xlabel('Jahre')
  5.  
  6.     ax = plt.subplot(111)
  7.     box = ax.get_position()
  8.  
  9.     ax.set_position([box.x0, box.y0, box.width * 0.96, box.height])
  10.     plt.legend(loc='center left', bbox_to_anchor=(1, 0.5))
  11.  
  12.  
  13. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement