Scientific Axis Label with Matplotlib in Python
To set the axis of a plot with matplotlib in Python to scientific formation, an easy way is to use ticklabel_format, the documentation is here. It is used like this import matplotlib.pyplot as plt #ploting something here plt.ticklabel_format(axis=’x’, style=’sci’, scilimits=(-2,2)) plt.show() where axis can be ‘x‘, ‘y‘ or ‘both‘ style can be ‘sci‘ for scientific…