Answers for "subplot ytick percent"

0

subplot ytick percent

import matplotlib.ticker as mtick

ax = df['myvar'].plot(kind='bar')
ax.yaxis.set_major_formatter(mtick.PercentFormatter())
Posted by: Guest on March-06-2021

Browse Popular Code Answers by Language