declare fontsize paramaters for matplotlib for the entire script in python

To set the fontsize parameter for the entire script in matplotlib, you can use the rcParams dictionary. This can be done by importing rcParams from matplotlib and then setting the font.size value to the desired font size:

main.py
from matplotlib import rcParams
rcParams['font.size'] = 12  # set font size to 12
82 chars
3 lines

This code will set the font size to 12 for all text elements in your matplotlib plots for the entire script. You can adjust the value to your desired font size.

gistlibby LogSnag