Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn import datasets
- figure=datasets.load_boston()
- fig=plt.figure()
- axes=fig.add_axes([0.1, 0.1,0.8, 0.8])
- fig, axes = plt.subplots(nrows=1, ncols=2)
- for ax in axes:
- ax.plot(CRIM, PRICE, 'r', NOX, PRICE, 'g')
- ax.set_CRIMlabel('crime')
- ax.set_PRICElabel('price')
- ax.set_NOXlabel('nox')
- ax.set_title('You think this bad neighborhood?')
- fig.tight_layout()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement