prettymaps icon indicating copy to clipboard operation
prettymaps copied to clipboard

get an appropriate fontfamily

Open Podidiving opened this issue 1 year ago • 0 comments

Hi there!

Accidentally come across your repository and I absolutely love it! However there is a small problem that bugs me: When I try to run it in colab I get a bunch of warnings:

WARNING:matplotlib.font_manager:findfont: Font family 'Ubuntu Mono' not found.

My patch is aimed to fix this warning: I've introduced a helper function that checks whether 'Ubuntu Mono' is among available font families. Otherwise it just takes first available fontfamily (it prefers *Mono fontfamily among others)

Hope you'll find useful my small contribution.

Cheers!

Podidiving avatar Apr 15 '23 09:04 Podidiving