Python Plotting With Matplotlib
Drawing attractive figures and plots is an important part of Data Science. In Python, the most frequently used plotting package is matplotlib , and is written in pure Python. It is probably the single most used Python package for creating static, animated, and interactive visualizations. Matplotlib package provides both a very quick way to visualize data from Python and professional-quality figures in different formats. It is highly customizable , but it can be hard to know what settings to tweak to achieve an attractive plot. Also, matplotlib makes heavy use of NumPy arrays and other extension code to provide best performance even for large arrays.
There are several ways to install matplotlib to your operating system. The esaiest way is to using pip command. The pip can also use to install the matplotlib library . Open the command prompt, type the following command.
Once you can successfully install matplotlib library , then you are ready to continue.
In the above code, import pyplot from matplotlib - use pyplot to "plot" some data to the canvas in memory and then use plt.show(), which is pyplot, to show what you've got.