Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as plt
- plt.style.available
- plt.style.use("seaborn) # how to choose the style
- #############################################################
- titanic.plot(subplots = True, figsize=(15,12), sharex= False)
- plt.show()
- #########################################################################3
- xticks = [x for x in range(0,901,50) # from 0 to 900 between 50
- yticks = [y for y in range(0,81,5)] # from 0 to 81 between 5
- titanic.age.plot(figsize=(12,10),fontsize=13,c='r',linestyle= '-',xlim=(0,900),ylim=(0,80),xtics=xtics, yticks=yticks, rot=45))
- plt.title("Titanic ages")
- plt.legend(loc = 3, fontsize = 15)
- plt.grid()
- plt.show()
- ########################################################################
- cars.plot(kind = 'line',subplots = True, figsize=(15,12), sharex= False, xlim = (0,350))
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement