Header Ads

full detail of matplotlib for data science






Matplotlib

How use Matplotlib ?

first of all you need import library to your python file-

                "import matplotlib.pyplot as plt "



Subplot by hand:

This is very basic method to draw axis on plot. the argument is - " plt.axes". By default it create entire figure and also optional for for creating subplot inside large figure. 

example : 



Also create plot inside plot, refer following figure





for more information about how adjust plots,change width of plot, and many more click here




No comments

Powered by Blogger.