Closed Ipuch closed 2 months ago
Here is a suggestion instead of replacing tick values @pariterre
def format_func(value, tick_number): return f'{value:.2f}'
ax.xaxis.set_major_formatter(FuncFormatter(format_func)) ax.yaxis.set_major_formatter(FuncFormatter(format_func))
Fixed in #890
Here is a suggestion instead of replacing tick values @pariterre
Define a formatter function
def format_func(value, tick_number): return f'{value:.2f}'
Apply the formatter to the x and y axis
ax.xaxis.set_major_formatter(FuncFormatter(format_func)) ax.yaxis.set_major_formatter(FuncFormatter(format_func))