Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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'))
 
PREVIOUS NEXT
Tagged: #plot #decimal #values #axis #python
ADD COMMENT
Topic
Name
3+8 =