I create a plot using matplotlib which has large number on the y-axis. I would like to add a thousand separator on this axis. This separator should be a quote and not a comma. So I would like to plot something like 10'000 for the number 10000.
If I use a comma for a thousand separator, I know about:
ax = plt.gca()
fmt = "{x:,.0f}"
tick = mpl.ticker.StrMethodFormatter(fmt)
ax.yaxis.set_major_formatter(tick)
but it does not work for single quote ('). What should I do?