Matplotlib.pyplot.ylabels() in Python Last Updated : 12 Apr, 2020 Comments Improve Suggest changes Like Article Like Report Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. matplotlib.pyplot.ylabel() Function The ylabel() function in pyplot module of matplotlib library is used to set the label for the x-axis.. Syntax: matplotlib.pyplot.ylabel(ylabel, fontdict=None, labelpad=None, **kwargs) Parameters: This method accept the following parameters that are described below: ylabel: This parameter is the label text. And contains the string value. labelpad: This parameter is used for spacing in points from the axes bounding box including ticks and tick labels and its default value is None. **kwargs: This parameter is Text properties that is used to control the appearance of the labels. Below examples illustrate the matplotlib.pyplot.ylabel() function in matplotlib.pyplot: Example #1: Python3 1== # Implementation of matplotlib.pyplot.ylabels() # function import numpy as np import matplotlib.pyplot as plt t = np.arange(-180.0, 180.0, 0.1) s = np.radians(t)/2. plt.plot(t, s, '-', lw = 2) plt.xlabel('Longitude') plt.ylabel('Latitude') plt.title('ylabels() function') plt.grid(True) plt.show() Output: Example #2: Python3 1== # Implementation of matplotlib.pyplot.ylabels() # function import numpy as np import matplotlib.pyplot as plt valx1 = np.linspace(0.0, 5.0) x2 = np.linspace(0.0, 2.0) valy1 = np.cos(2 * np.pi * valx1) * np.exp(-valx1) y2 = np.cos(2 * np.pi * x2) plt.subplot(2, 1, 1) plt.plot(valx1, valy1, 'o-') plt.title('ylabel() Example') plt.ylabel('Damped oscillation') plt.subplot(2, 1, 2) plt.plot(x2, y2, '.-') plt.xlabel('time (s)') plt.ylabel('Undamped') plt.show() Output: Comment More infoAdvertise with us Next Article Matplotlib.pyplot.ylabels() in Python S SHUBHAMSINGH10 Follow Improve Article Tags : Python Python-matplotlib Practice Tags : python Similar Reads Matplotlib.pyplot.ylabel() in Python Matplotlib is a very powerful plotting library useful for those working with Python and NumPy. And for making statistical interference, it becomes very necessary to visualize our data and Matplotlib is the tool that can be very helpful for this purpose. matplotlib.pyplot.ylabel() This function sets 2 min read Matplotlib.pyplot.xlabels() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. matplotlib.pyplot.xlabel() Function The xlabel() function in pyplot module of matplotlib library is used 2 min read Matplotlib.pyplot.ylim() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. matplotlib.pyplot.ylim() Function The ylim() function in pyplot module of matplotlib library is used to g 2 min read Matplotlib.pyplot.yscale() in Python Matplotlib Is a library in Python and it is a numerical - mathematical extension for the NumPy library. Pyplot Is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. matplotlib.pyplot.yscale() in Python The matplotlib.pyplot.yscale() function in pyplot module of ma 2 min read Matplotlib.pyplot.title() in Python The title() method in the Matplotlib module is used to specify the title of the visualization depicted and display the title using various attributes. In this article, we will learn about this function with the help of examples.Syntax: matplotlib.pyplot.title(label, fontdict=None, loc='center', pad= 3 min read Matplotlib.pyplot.sci() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read Matplotlib.pyplot.sca() in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 1 min read Matplotlib.pyplot.yticks() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. Matplotlib.pyplot.yticks() Function The annotate() function in pyplot module of matplotlib library is use 2 min read Matplotlib.pyplot.show() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. Sample Code - Python3 1== # sample code import matplotlib.pyplot as plt plt.plot([1, 2, 3, 4], [16, 4, 1, 2 min read Matplotlib.pyplot.xlim() in Python Matplotlib is a library in Python and it is numerical - mathematical extension for NumPy library. Pyplot is a state-based interface to a Matplotlib module which provides a MATLAB-like interface. There are various plots which can be used in Pyplot are Line Plot, Contour, Histogram, Scatter, 3D Plot, 2 min read Like