Matplotlib.pyplot.ylabel() in Python Last Updated : 12 Apr, 2020 Comments Improve Suggest changes Like Article Like Report 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 the label for the y-axis of the plot. Syntax: matplotlib.pyplot.ylabel(ylabel, fontdict=None, labelpad=None) Parameters: ylabel: The name of the label fontdict: Adds the font styles to the label labelpad: This helps us to set the spacing between label and the axis Example #1: Python3 1== import matplotlib.pyplot as plt # setting x values x =['Geeks', 'for', 'geeks', 'tutorials'] # Setting y values y =[1, 2, 3, 4] # Adding label on the y-axis plt.ylabel('Numbers label') # plotting the graph plt.plot(x, y) Output: Example #2: Python3 1== import matplotlib.pyplot as plt x =['Geeks', 'for', 'geeks', 'tutorials'] y =[1, 2, 3, 4] # Adding space between label and # axis by setting labelpad plt.ylabel('Numbers label', labelpad = 50) plt.plot(x, y) Output: Example #3: Python3 1== import matplotlib.pyplot as plt x =['Geeks', 'for', 'geeks', 'tutorials'] y =[1, 2, 3, 4] # Setting font dictionary font = {'family': 'Verdana', 'color': 'green', 'size': 20, } # Adding the font styles to the label plt.ylabel('Numbers label', fontdict = font) plt.plot(x, y) Output: Comment More infoAdvertise with us Next Article Matplotlib.pyplot.ylabel() in Python S sathvik chiramana Follow Improve Article Tags : Python Python-matplotlib Practice Tags : python Similar Reads Matplotlib.pyplot.ylabels() 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.ylabel() Function The ylabel() function in pyplot module of matplotlib library is used 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.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.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 Matplotlib.pyplot.twiny() 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, 8 2 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.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 Like