bff.plot.set_thousands_separator¶
-
bff.plot.
set_thousands_separator
(axes, which='both', nb_decimals=1)¶ Set thousands separator on the axes.
- Parameters
axes (plt.axes) – Axes from matplotlib, can be a single ax or an array of axes.
which (str, default 'both') – Which axis to format with the thousand separator (‘both’, ‘x’, ‘y’).
nb_decimals (int, default 1) – Number of decimals to use for the number.
- Returns
Axis with the formatted axes.
- Return type
plt.axes
Examples
>>> fig, ax = plt.subplots(1, 1) >>> ax.plot(...) >>> set_thousands_separator(ax, which='x', nb_decimals=3)