Answers for "matplotlib force axis to 2 decimal places"

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
0

how to plot 2 decimal values in axis python

from matplotlib.ticker import FormatStrFormatter

fig, ax = plt.subplots()

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

Code answers related to "matplotlib force axis to 2 decimal places"

Browse Popular Code Answers by Language