MatPlotLib - Python for Data Science

MatPlotLib - Python for Data Science

Matplotlib, Python, Data Science, Data Visualization

Matplotlib is a python data visualization library build on top of Numpy array. It is a 2D and 3D graphic library for generating scientific graphs. It is very easy for plotting any kind of graphs, customizable texts and labels, High quality outputs in many formats. Graphs can be applied on top of List, Numpy arrays, tuples, Dicts, Pandas columns. We can use any of below 3 methods to generate the graph.

  • plt.plot() -->Basic generating block in matplotlib, takes axis values and generate Graphs accordingly.
  • plt.figure() -->with figure() we can work with objects. We can apply functions and actions to those objects. Figure is like Excel workbook. Axes is like single sheet in excel workbook.
  • plt.subplots() -->Used to generate multiple plots in single figure. Arguments: nrows, ncols, and index.

Below is Jupyter Notebook link from my Github repository 2.GitHub_link.jpg
If you face any issue while opening the notebook like below
Sorry, something went wrong. Reload? then please click on Reload link. It will be loaded properly. Reason is when we open any Jupyter notebooks in Github, sometimes above message will be shown due to rich text available in that notebook. Try clicking Reload link multiple times if the issue comes again. 1.Github_error.png