How do you set the formatting of axis labels via
CodePudding user response:
import matplotlib.ticker as ticker
secax.yaxis.set_major_formatter(ticker.StrMethodFormatter("{x:g}"))
or
secax.yaxis.set_major_formatter(ticker.FormatStrFormatter("%g"))