Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. from sklearn import datasets
  2. figure=datasets.load_boston()
  3. fig=plt.figure()
  4. axes=fig.add_axes([0.1, 0.1,0.8, 0.8])
  5. fig, axes = plt.subplots(nrows=1, ncols=2)
  6.  
  7. for ax in axes:
  8. ax.plot(CRIM, PRICE, 'r', NOX, PRICE, 'g')
  9. ax.set_CRIMlabel('crime')
  10. ax.set_PRICElabel('price')
  11. ax.set_NOXlabel('nox')
  12. ax.set_title('You think this bad neighborhood?')
  13.  
  14. fig.tight_layout()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement