Plotting
with Pyplot
Matplotlib
is the whole python package/ library used to create 2D
graphs and plots by
using python scripts. pyplot is a module in matplotlib, which supports a very wide variety of graphs and plots
namely - histogram, bar
charts, power spectra, error charts etc. It is used
along with NumPy to provide an environment for MatLab.
Pyplot
provides the state-machine interface to the plotting library in matplotlib.It means that figures and axes are implicitly and automatically created to achieve the desired plot. For example, calling plot from pyplot will automatically create the necessary figure and axes to achieve the desired plot. Setting a title will then automatically set that title to the current axes object.The pyplot interface is generally preferred for non-interactive plotting (i.e., scripting).
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.