I am currently using Matplotlib to batch plot 50+ graphs at a time from a single Python script.
From other users on StackOverflow, I've been able to find a way to control the font sizes globally, like so:
# SET FONT SIZES
size_xs = 8
size_s = 12
size_m = 16
size_l = 20
size_xl = 24
plt.rc("font", size=size_m) # controls default text sizes
plt.rc("axes", titlesize=size_m) # fontsize of the axes title
plt.rc("axes", labelsize=size_m) # fontsize of the x and y labels
plt.rc("xtick", labelsize=size_m) # fontsize of the tick labels
plt.rc("ytick", labelsize=size_m) # fontsize of the tick labels
plt.rc("legend", fontsize=size_m) # legend fontsize
plt.rc("figure", titlesize=size_m) # fontsize of the figure title
# plt is short for matplotlib.pyplot
Is there a way to do the same and globally control the number of decimals displayed on the x and y axes? I have a mix of graphs plotted in both scalar and scientific notation, so a method that can work for both of these formats would be much appreciated.