matplotlib tutorial (6) nitta@tsuda.ac.jp

Chapter 6: Scatter Diagram, Contour Lines, Filling

6-1: Scatter Diagram

Axes.scatter(x, y, ...)

6-2: Draw irregularly spaced contour lines (contour/contourf).

Draw contour lines on the scatter diagram on which the markers are plotted, and fill the area surrounded by the contour lines with each color.

6-3: Fill a certain section area under the curve with a polygon (Polygon)

"Fill a certain section under the curve" → "Represent an area" → "Generate a Polygon and add it to Axes, using Axes.add_patch()."