Matplotlib Tutorial - Axis Label
In this tutorial we’re going to learn about axis labels, titles and legends in Matplotlib. These could help the graph to be self-explanatory with such kind of context. Matplotlib Axis Label matplotlib.pyplot.xlabel(label, fontdict=None, labelpad=None, **kwargs) It sets the label for the x-axis. Similarly, matplotlib.pyplot.ylabel sets the label of y-axis. Parameters Name Description label label text fontdict label text font dictionary, like family, color, weight and size labelpad Spacing in points between the label and the x-axis # -*- coding: utf-8 -*- import numpy as np import matplotlib.