Another library that helps in the process of plotting graphs/charts using pyplot in NumPy. NumPy stands for numerical python. NumPy is the core library for scientific computing in python. It provides a highperformance multidimensional array object and tools for working with these arrays. Using NumPy, a developer can perform the following operations:
- Mathematical and logical operations on the array.
- Transforms and routines for shape manipulation.
- Operations related to linear algebra. NumPy has inbuilt functions for linear algebra and random number generation.
There are some basic rules we should be aware of before we proceed to plot.
- We have to choose as appropriate plot type
- when we choose the type of plot, one of the most important is to label the axis. if we don’t do this, the plot is not informative enough. When there are no axis labels, we can try to look at the code to see what data is used and we can understand the plot.
- we can add a title to make out plot more informative
- add labels for different categories when needed.
- in some cases we can use some sizes and colors of the data to make the plot more informative.