Posts

Showing posts from July, 2022

Second Library: Matplotlib

Image
Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. To install matplotlib: Install using pip:              pip install matplotlib Install using conda:        conda install matplotlib Matplotlib consists of the following submodules:  matplotlib.pyplot matplotlib.animation matplotlib.artist matplotlib.image matplotlib.text matplotlib.textpath There are many submodules of matplotlib. Most of the Matplotlib utilities lies under the pyplot  submodule.  Each pyplot function makes some change to a figure: e.g., creates a figure, creates a plotting area in a figure, plots some lines in a plotting area, decorates the plot with labels, etc. Introductory: The basics of creating visualizations with Matplotlib. Matplotlib graphs  where points can be specified in terms of x-y coordinates.  The simplest way of creating a Figure with an Axes is using pyplot.subplots.  We can then use plot  to draw some data on the Axes:          Parts of figur