How to make plot_top_losses font smaller (only for perfectionists!)

I was using fastai function plot_top_losses and because classes names are sooo long the figure looks kinda ugly. Is there a way to make the font size smaller? It is by default 14 according to the source code. I am sure I am not the first perfectionist to feel pain…

2 Likes
plt.rcParams.update({'font.size': 8})
interp.plot_top_losses(9)
4 Likes

Thanks a lot @kushaj, you made my day a bit brighter :smiling_face_with_three_hearts:

Perfectionists deserve this.

1 Like

Thanks! How about changing figure plot size for callback such as recorder.plot_losses() and recorder.plot()?