We have seen that the previous blog gave a basic understanding of the Libraries in python. These Libraries are very handy and useful in performing specific tasks.
Here we will focus on Data Visualization libraries mainly: Matplotlib and Seaborn.
Matplotlib
Matplotlib is a Python 2D plotting library . Matplotlib tries to make easy things easy and hard things possible. You can generate plots, histograms, power spectra, bar charts, error charts, scatter plots, etc., with just a few lines of code.
Simple Line Graph
Line graph with more features. I have added the following:
- Labels (names) for x,y and z.
- lw is label width
- marker is the style o is circle, ^ is triangle, h is hexagon
- marker size is set to 15 to make it visible.
- The x and y axis are labeled as Price and Time
- Title is assigned to the Line graph
- Notice the legend location is best which matplotlib automatically assigns.
Please refer to https://matplotlib.org/3.1.1/gallery/index.html for further details.