#day20

Img

Hello Everyone! Do you know how to plot graphs in python. Look import matplotlib.pyplot as plt plt.plot([][]) and the graph with the specified x and y coordinates get ploted. we can change the plot appearance by specifying the type of graph line type like, plt.plot([1,2,3,4], [1,4,9,16],'ro') 'ro' will generate plot in form of red dots. plt.plot([1,2,3,4], [1,4,9,16],'bs') 'bs' will generate plot in form of blue squares. plt.plot([1,2,3,4], [1,4,9,16],'r--') 'r--' will generate plot in form of red dashed line. Dont forget to like the post And do give it a try. #day20

Read More