matplotlib
Contents
matplotlib¶
Types of Plots¶
Function |
Chapter |
Description |
---|---|---|
Data Visualization |
Creates a scatter plot of the variable x against the variable y |
|
Data Visualization |
Creates a line plot of the variable x against the variable y |
|
Data Visualization |
Creates a histogram of x. Bins argument can be an integer or sequence |
|
Data Visualization |
Creates a bar plot. |
|
Data Visualization |
Creates a vertical line at the x value specified |
|
Data Visualization |
Creates a horizontal line at the y value specified |
Plot additions¶
Function |
Chapter |
Description |
---|---|---|
Data Visualization |
Causes output of plotting commands to be displayed inline |
|
Data Visualization |
Creates a figure with a width of 3 inches and a height of 5 inches |
|
Data Visualization |
Sets the x-limits of the current axes |
|
Data Visualization |
Sets an x-axis label of the current axes |
|
Data Visualization |
Sets a title of the current axes |
|
Data Visualization |
Places a legend on the axes |
|
Data Visualization |
Creates a figure and set of subplots |
|
Data Visualization |
Displays a figure |