![pylab module pylab module](https://matplotlib.org/1.5.1/mpl_examples/pylab_examples/triinterp_demo.hires.png)
The pyplot module is typically imported using the alias plt as demonstrated below. Pyplot provides methods that can be used to add different components to figure objects, including creating the individual plots as axis objects, also known as subplots.
While Matplotlib contains many modules that provide different plotting functionality, the most commonly used module is pyplot. FileA figure created using matplotlib can contain one or many plots, or axis objects. This structure allows you to create figures with one or more plots on them. You can think about the axis object as an individual plot.Ī figure can hold one or more axis objects. You can think of the figure object as your plot canvas.
![pylab module pylab module](https://matplotlib.org/1.5.0/mpl_examples/pylab_examples/quadmesh_demo.hires.png)
Customize the labels, colors and look of your matplotlib plot.Use matplotlib to create scatter, line and bar plots.Explain the matplotlib object-oriented approach to plotting.Learning ObjectivesĪfter completing this chapter, you will be able to:
PYLAB MODULE HOW TO
In this chapter, you will learn how to create and customize plots in Python using matplotlib, including how to create different types of plots and customize plot colors and labels. Chapter One - Introduction to Plotting with Matplotlib