Matplotlib.axes.Axes.set_autoscalex_on() in Python Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. matplotlib.axes.Axes.set_autoscalex_on() Function The Axes.set_autoscalex_on() function in axes module of matplotlib library is used to set whether autoscaling for the x-axis is applied on plot commands. Syntax: Axes.set_autoscalex_on(self, b)Parameters: This method accepts the following parameters. b: This parameter is used to set whether autoscaling for the x-axis is applied on plot commands. Return value: This method does not return any value. Below examples illustrate the matplotlib.axes.Axes.set_autoscalex_on() function in matplotlib.axes:Example 1: Python3 # ImpleIn Reviewtation of matplotlib function import numpy as np import matplotlib.pyplot as plt t = np.linspace(0, 20, 300) xdata = np.sin(np.pi * t / 12) ydata = np.cos(4 * np.pi * t / 21) fig, ax = plt.subplots() ax.plot(xdata, ydata, 'g-') ax.set_autoscalex_on(False) fig.suptitle('matplotlib.axes.Axes.set_autoscalex_on() \ function Example\n', fontweight ="bold") fig.canvas.draw() plt.show() Output: Example 2: Python3 # ImpleIn Reviewtation of matplotlib function import numpy as np import matplotlib.pyplot as plt t = np.linspace(16, 365, (365-16)*4) xdata = np.sin(2 * np.pi * t / 15) ydata = np.cos(2 * np.pi * t / 12) fig, (ax, ax1) = plt.subplots(1, 2) ax.plot(xdata, ydata, 'g-') ax1.set_autoscalex_on(True) ax.set_title("set_autoscalex_on value : True") ax1.plot(xdata, ydata, 'g-') ax1.set_autoscalex_on(False) ax1.set_title("set_autoscalex_on value : False") fig.suptitle('matplotlib.axes.Axes.set_autoscalex_on() \ function Example\n', fontweight ="bold") fig.canvas.draw() plt.show() Output: Comment More infoAdvertise with us Next Article Matplotlib.axes.Axes.set_autoscalex_on() in Python S SHUBHAMSINGH10 Follow Improve Article Tags : Python Python-matplotlib Practice Tags : python Similar Reads Matplotlib.axes.Axes.set_autoscale_on() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. 2 min read Matplotlib.axes.Axes.set_autoscaley_on() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. 2 min read Matplotlib.axes.Axes.get_autoscalex_on() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. 2 min read Matplotlib.axes.Axes.autoscale() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. 2 min read Matplotlib.axes.Axes.get_autoscale_on() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. 2 min read Matplotlib.axes.Axes.autoscale_view() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. 3 min read Matplotlib.axes.Axes.get_autoscaley_on() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. 2 min read Matplotlib.axes.Axes.set_adjustable() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. And the instances of Axes supports callbacks through a callbacks attribute. 2 min read Matplotlib.axes.Axes.set_axis_on() in Python Axes.set_axis_on() function in Matplotlib is used to turn on the axis lines, ticks, tick labels, and axis labels on a given Axes object. It is a simple way to make the axis visible if it was previously turned off. It's key features include:Turns on the axis lines, ticks, tick labels and axis labels. 2 min read Matplotlib.axes.Axes.set_aspect() in Python The Axes Class contains most of the figure elements: Axis, Tick, Line2D, Text, Polygon, etc., and sets the coordinate system. The instances of Axes support callbacks through a callbacks attribute. Matplotlib.axes.Axes.set_aspect()` in Python is a method used to set the aspect ratio of the axes in a 3 min read Like