Postingan

Menampilkan postingan dengan label matplotlib change legend font size

41 legend font size matplotlib

Gambar
matplotlib.legend — Matplotlib 3.7.0 documentation The font properties of the legend. If None (default), the current matplotlib.rcParams will be used. fontsizeint or {'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'} The font size of the legend. If the value is numeric the size will be the absolute font size in points. matplotlib.pyplot.legend — Matplotlib 3.7.0 documentation The font properties of the legend. If None (default), the current matplotlib.rcParams will be used. fontsizeint or {'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'} The font size of the legend. If the value is numeric the size will be the absolute font size in points. How to change legend fontsize with matplotlib.pyplot Method 1: specify the fontsize when calling legend (repetitive) plt.legend (fontsize=20) # using a size in points plt.legend (...