Answers for "how to define number after decimal point in matplotlib"

0

matplotlib set number of decimal places

from matplotlib.ticker import FormatStrFormatter

fig, ax = plt.subplots()

ax.yaxis.set_major_formatter(FormatStrFormatter('%.2f'))
Posted by: Guest on April-14-2021

Code answers related to "how to define number after decimal point in matplotlib"

Browse Popular Code Answers by Language