Matplotlib.axis.Axis.set_ticklabels() function in Python Last Updated : 08 Jun, 2020 Comments Improve Suggest changes 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.set_ticklabels() Function The Axis.set_ticklabels() function in axis module of matplotlib library is used to set the text values of the tick labels. Syntax: Axis.set_ticklabels(self, ticklabels, \*args, minor=False, \*\*kwargs) Parameters: This method accepts the following parameters. ticklabels : This parameter is the List of texts for tick labels.minor : This parameter contains the bool value. Return value: This method returns the list of Texts. Below examples illustrate the matplotlib.axis.Axis.set_ticklabels() 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 fig = plt.figure() x = np.linspace(0,2*np.pi,100) y = 2*np.sin(x) ax = fig.add_subplot() ax.plot(x,y) ax.yaxis.set_ticklabels(['','a','b','c','d', 'e','f','g','h','i', '']) ax.xaxis.set_ticklabels(['','A','B','C','D', 'E','F','G','']) ax.grid() fig.suptitle("""matplotlib.axis.Axis.set_ticklabels() function Example\n""", fontweight ="bold") plt.show() Output: Example 2: Python3 # Implementation of matplotlib function from matplotlib.axis import Axis import matplotlib.pyplot as plt import numpy as np fig = plt.figure() x = np.linspace(-np.pi, np.pi, 100) y = 2 * np.sin(x) ax = fig.add_subplot() ax.set_title('centered spines') ax.plot(x, y) ax.spines['left'].set_position('center') ax.spines['right'].set_color('none') ax.spines['bottom'].set_position('center') ax.spines['top'].set_color('none') ax.xaxis.set_ticks_position('bottom') ax.yaxis.set_ticks_position('left') ax.xaxis.set_ticklabels(['','A','B','C','D', 'E','F','G','']) ax.grid() fig.suptitle("""matplotlib.axis.Axis.set_ticklabels() function Example\n""", fontweight ="bold") plt.show() Output: Comment More infoAdvertise with us Next Article Matplotlib.axis.Axis.set_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_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.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.Tick.set() 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.Tick.set() Function The Tick.set() function in axis module of m 2 min read Matplotlib.axis.Axis.set() 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() Function The Axis.set() function in axis module of m 2 min read Matplotlib.axis.Axis.set_units() 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_units() Function The Axis.set_units() function in axis 2 min read Matplotlib.axis.Tick.set_figure() 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.Tick.set_figure() Function The Tick.set_figure() function in ax 2 min read Matplotlib.axis.Axis.get_tick_space() 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_tick_space() Function The Axis.get_tick_space() functi 2 min read Matplotlib.axis.Tick.set_animated() 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.Tick.set_animated() Function The Tick.set_animated() function i 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 Like