Matplotlib.axis.Axis.get_tick_space() function in Python Last Updated : 08 Jun, 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. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. matplotlib.axis.Axis.get_tick_space() Function The Axis.get_tick_space() function in axis module of matplotlib library is used to get the estimated number of ticks that can fit on the axis. Syntax: Axis.get_tick_space(self) Parameters: This method does not accepts any parameters. Return value: This method return the estimated number of ticks that can fit on the axis. Below examples illustrate the matplotlib.axis.Axis.get_tick_space() function in matplotlib.axis: Example 1: Python3 # Implementation of matplotlib function from matplotlib.axis import Axis import matplotlib.pyplot as plt import numpy as np X = np.arange(-5, 5, 1) Y = np.arange(-5, 5, 1) U, V = np.meshgrid(X, Y) fig, ax = plt.subplots() ax.quiver(X, Y, U, V) w = ax.xaxis.get_tick_space() print("Value Return :\n"+str(w)) fig.suptitle("""matplotlib.axis.Axis.get_tick_space() function Example\n""", fontweight ="bold") plt.show() Output: Value Return : 11 Example 2: Python3 # Implementation of matplotlib function from matplotlib.axis import Axis import numpy as np import matplotlib.pyplot as plt fig, ax2 = plt.subplots(sharex = True) fig.subplots_adjust(left=0.2, wspace=0.6) box = dict(facecolor='green', pad=5, alpha=0.2) ax2.plot(20*np.random.rand(10)) ax2.set_xlabel('X - Label', bbox=box) ax2.set_xlim(0, 10) Axis.set_label_coords(ax2.xaxis, 0.5, 0.95) w = ax2.xaxis.get_tick_space() print("Value Return :\n"+str(w)) fig.suptitle("""matplotlib.axis.Axis.get_tick_space() function Example\n""", fontweight ="bold") plt.show() Output: Value Return : 10 Comment More infoAdvertise with us Next Article Matplotlib.axis.Axis.get_ticklabels() function in Python S SHUBHAMSINGH10 Follow Improve Article Tags : Python Python-matplotlib Matplotlib-Axis Class Practice Tags : python Similar Reads Matplotlib.axis.Axis.set_ticks() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. Matplotlib.axis.Axis.set_ticks() Function The Axis.set_ticks() function in axis 2 min read Matplotlib.axis.Axis.get_ticklocs() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. matplotlib.axis.Axis.get_ticklocs() Function The Axis.get_ticklocs() function i 2 min read Matplotlib.axis.Axis.get_ticklines() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. matplotlib.axis.Axis.get_ticklines() Function The Axis.get_ticklines() function 2 min read Matplotlib.axis.Axis.reset_ticks() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. Matplotlib.axis.Axis.reset_ticks() Function The Axis.reset_ticks() function in 2 min read Matplotlib.axis.Axis.get_ticklabels() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. matplotlib.axis.Axis.get_ticklabels() Function The Axis.get_ticklabels() functi 2 min read Matplotlib.axis.Axis.get_major_ticks() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. Matplotlib.axis.Axis.get_major_ticks() Function The Axis.get_major_ticks() func 2 min read Like