![]() |
VOOZH | about |
In this article, we are going to discuss how to change the font size of the title in a figure using matplotlibmodule in Python.
As we use matplotlib.pyplot.title()method to assign a title to a plot, so in order to change the font size, we are going to use the font size argument of the pyplot.title()method in the matplotlib module.
In this example, we are plotting a ReLU function graph with fontsize=40.
Output:
In this example, we are plotting a sinewave graph with set_size(20).
Output:
In this example, we are plotting a pie graph with fontsize=10.