April 2024
Beginner to intermediate
500 pages
24h 20m
English
Table B.23 shows some common functions used for visualization. To use these functions, first import matplotlib. The parameters listed for each function are only a subset of the possible parameters that can be set to customize a visualization. See matplotlib.org for information on other options.
Table B.23 matplotlib Functions
| Name | Use | Explanation |
|---|---|---|
| bar | bar(x = xValues, height = hValues, color = colorNames) | Creates a bar chart given x values and their corresponding heights. The color of the bars can be set using a string representation of that color (e.g., "red", "green", "blue"). If not set, the default color is blue. |
| scatter | scatter(x = xValues, y = yValues, color = colorNames) | Creates a scatterplot of points for each ... |
Read now
Unlock full access