Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. from pylab import legend
  4.  
  5. x = np.linspace(1,10, 100)
  6. y = x**3
  7.  
  8. fig = plt.figure()
  9. ax = fig.add_subplot(1,1,1)
  10. ax.plot(x,y, 'bo', label='Blah!')
  11. lg = legend(numpoints = 1, loc=2)
  12. lg.get_frame().set_alpha(0)
  13. #ax.legend(numpoints = 1, loc=2)
  14.  
  15. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement