The greatest value of a picture is when it forces us to notice what we never expected to see.
John Hunter (1968 - 2012)
TkAgg | Qt4Agg | WebAgg |
Raster (PNG) | Vector (SVG) |
import matplotlib.pyplot as plt
plt.figure()
plt.subplot(...)
plt.plot(...)
plt.show()
pyplot is a stateful interface that handles much of the boilerplate for creating figures and axes and connecting them to the backend of your choice, and maintains module-level internal data structures representing the current figure and axes to which to direct plotting commands.
plt.plot
plt.show
plt.xlabel
plt.ylabel
plt.xlim
plt.gca
plt.text
xaxis.set_minor_locator
yaxis.set_major_locator
YearsLocator
MonthLocator
plt.bar
plt.xticks(pos, labels)
Spine.set_visible
Axis.set_ticks_position
Axes.set_axis_bgcolor
plt.grid
plt.title
1.1 2.2 2.8 3.2 3.4 3.4 3.5 4.1 4.9 5.5 5.7
1. | 1 | |||
---|---|---|---|---|
2. | 2 | 8 | ||
3. | 2 | 4 | 4 | 5 |
4. | 1 | 9 | ||
5. | 5 | 7 |
plt.hist
plt.boxplot
plt.legend
plt.text
plt.setp
plt.vlines
Axes.transAxes
Axes.transData
blended_transform_factory
plt.subplots
Axes.set_axis_off
plt.imshow
rcParams
plt.scatter
mcolors.Normalize
cm.get_cmap
plt.contourf
cartopy.crs
cartopy.io
ax.coastlines
ax.add_feature
ax.set_extent
ax.add_image
ax.add_geometries