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.