- Matplotlib 3.0 Cookbook
- Srinivasa Rao Poladi
- 72字
- 2025-04-04 16:06:37
Using autoscale and axis limits
Matplotlib automatically fits the complete data range in the input data for both the x and the y axis, splits it into bins, and displays ticks and ticklabels accordingly. At times, we may want to see a specific range of data more closely on either of the axes, instead of a complete range of data. In this recipe, we will learn how to do this.