Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib.pyplot as plt
- # generate random data for plotting
- x = np.linspace(0.0,100,50)
- y = np.random.normal(size=50)
- plt.plot(x,y)
- # call method plt.legend
- plt.legend(['line plot 1'])
- plt.show()
- import matplotlib.pyplot as plt
- %matplotlib inline
- views = [123,56,64,54,223,5523]
- days = range(1,7)
- plt.xlabel("Days")
- plt.ylabel("Views")
- plt.title("You Tube views")
- plt.legend(["Youtube views"])
- plt.plot(days,views)
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement