matplotlib.axes.Axes.can_pan() in Python Last Updated : 19 Apr, 2020 Summarize Comments Improve Suggest changes Share 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.can_pan() Function The Axes.can_pan() Function in axes module of matplotlib library is used to check whether the axes supports any pan/zoom button functionality or not. Syntax: Axes.can_pan(self) Parameters: This method does not accept any parameters. Return value: This method returns boolean value True if supports any pan/zoom button functionality. Below examples illustrate the matplotlib.axes.Axes.can_pan() function in matplotlib.axes: Example 1: Python3 1== # Implementation of matplotlib function import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() ax.plot([1, 2, 3]) w = ax.can_pan() # print(w) ax.text(0.4, 2.75, "Value return by can_pan() function:", fontweight ="bold") ax.text(0.9, 2.6, w, fontweight ="bold") fig.suptitle('matplotlib.axes.Axes.can_pan() function \ Example\n\n', fontweight ="bold") plt.show() Output: Example 2: Python3 1== # Implementation of matplotlib function import numpy as np import matplotlib.pyplot as plt from matplotlib.widgets import Slider, Button, RadioButtons fig, ax1 = plt.subplots() plt.subplots_adjust(bottom = 0.25) t = np.arange(0.0, 1.0, 0.001) a0 = 5 f0 = 3 delta_f = 5.0 s = a0 * np.sin(2 * np.pi * f0 * t) ax1.plot(t, s, lw = 2, color = 'green') ax1.set_ymargin(0.5) w = ax1.can_pan() ax1.text(0.2, 7.5, "Value return by can_pan() function:", fontweight ="bold") ax1.text(0.47, 5.6, w, fontweight ="bold") fig.suptitle('matplotlib.axes.Axes.can_pan() function\ Example\n\n', fontweight ="bold") plt.show() Output: Comment More infoAdvertise with us Next Article Matplotlib.axes.Axes.cla() in Python S SHUBHAMSINGH10 Follow Improve Article Tags : Python Python-matplotlib Practice Tags : python Similar Reads Matplotlib.axes.Axes.end_pan() 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. 1 min read Matplotlib.axes.Axes.drag_pan() 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.cla() 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. 1 min read Matplotlib.axes.Axes.draw() 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.can_zoom() 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.axis() in Python The Axes.axis() function in Matplotlib is used to get or set the properties of the x-axis and y-axis limits on a given Axes object. It provides an easy way to control the view limits, aspect ratio, and visibility of the axes in a plot. It's key feature include:Get the current axis limits as [xmin, x 2 min read Like