Matplotlib.axis.Axis.get_label_position() function in Python Last Updated : 05 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.get_label_position() Function The Axis.get_label_position() function in axis module of matplotlib library is used to get the label position. Syntax: Axis.get_label_position(self) Parameters: This method does not accepts any parameter. Return value: This method returns the label position. Below examples illustrate the matplotlib.axis.Axis.get_label_position() function in matplotlib.axis: Example 1: 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.xaxis.set_label_text('X - Label', bbox=box) ax2.set_xlim(0, 10) print("Position of Label :",ax2.xaxis.get_label_position()) fig.suptitle("Matplotlib.axis.Axis.get_label_position()\ Function Example", fontsize = 12, fontweight ='bold') plt.show() Output: Position of Label : bottom Example 2: Python3 # Implementation of matplotlib function from matplotlib.axis import Axis import numpy as np import matplotlib.pyplot as plt fig, (ax1, ax2) = plt.subplots(2, 1, sharex = True) fig.subplots_adjust(left=0.2, wspace=0.6) box = dict(facecolor='green', pad=5, alpha=0.2) np.random.seed(19680801) ax1.plot(2*np.random.rand(10)) ax1.set_title('Label is not aligned') ax1.yaxis.set_label_text('Default', bbox=box) ax1.set_ylim(0, 20) print("Position of Label in Axes 1 :", ax1.yaxis.get_label_position()) ax2.set_title('\nLabel is aligned') ax2.plot(20*np.random.rand(10)) ax2.yaxis.set_label_text('Adjusted', bbox=box) ax2.yaxis.set_label_position('right') ax2.set_ylim(0, 20) print("Position of Label in Axes 2 :", ax2.yaxis.get_label_position()) fig.suptitle("Matplotlib.axis.Axis.get_label_position()\ Function Example", fontsize = 12, fontweight ='bold') plt.show() Output: Position of Label in Axes 1 : left Position of Label in Axes 2 : right Comment More infoAdvertise with us Next Article Matplotlib.axis.Axis.get_label_position() function in Python S SHUBHAMSINGH10 Follow Improve Article Tags : Python Python-matplotlib Matplotlib-Axis Class Practice Tags : python Similar Reads Matplotlib.axis.Axis.set_label_position() 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_label_position() Function The Axis.set_label_position( 2 min read Matplotlib.axis.Axis.get_label() 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_label() Function The Axis.get_label() function in axis 2 min read Matplotlib.axis.Axis.get_label_text() 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_label_text() Function The Axis.get_label_text() functi 2 min read Matplotlib.axis.Axis.get_minpos() 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_minpos() Function The Axis.get_minpos() function in ax 2 min read Matplotlib.axis.Axis.get_minor_locator() 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_minor_locator() Function The Axis.get_minor_locator() 1 min read Matplotlib.axis.Axis.get_majorticklabels() 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_majorticklabels() Function The Axis.get_majorticklabel 2 min read Matplotlib.axis.Axis.set_label() 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_label() Function The Axis.set_label() function in axis 2 min read Matplotlib.axis.Axis.get_pickradius() 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_pickradius() Function The Axis.get_pickradius() functi 2 min read Matplotlib.axis.Axis.get_minorticklocs() 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_minorticklocs() Function The Axis.get_minorticklocs() 2 min read Matplotlib.axis.Axis.get_gid() 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_gid() Function The Axis.get_gid() function in axis mod 2 min read Like