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

Chapter 4: Specify Title and Axis Labels

4-1: Display titles and axis labels

Set the title, axis label, etc. for the coordinate system (Axes).

4-2: Set Text Styles at once, using fontdict

4-3: Set axis scales and scale labels

4-4: Move the axis to the center of the graph area, using set_position

The boundaries of the four corners (left, top, right, bottom) of the graph area represented by the Axes object are managed as objects of the Spine class.

Since left represents y-axis and bottom represents the x-axis, each axis can be moved by changing the value of left and bottom key.

4-5: Invert Axis (Axes.set_xlim, Axes.set_ylim)

Invert the x-axis and y-axis.