Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font for labels #10

Open
exrhizo opened this issue Feb 22, 2024 · 3 comments
Open

Font for labels #10

exrhizo opened this issue Feb 22, 2024 · 3 comments

Comments

@exrhizo
Copy link

exrhizo commented Feb 22, 2024

Hi, this is great, I found the ML Arxiv Map

Something that I think could improve readability of the labels is:

image

I think the font you are using is a title font, but as it gets smaller size, the narrow stems are hard to read, maybe a sans-serif could improve the hierarchy?

@lmcinnes
Copy link
Contributor

The font is selectable as a parameter. You can specify any font that is on google-font and it should work. If you check the example you chould be able to swap in any font you like and generate your own.

@andrea-mar
Copy link

somewhat related question: how can one add a font from a local .tff file?

@lmcinnes
Copy link
Contributor

For the interactive plots that isn't really possible right now unfortunately -- you would need to embed the font into the HTML somehow. That is something you could potentially to afterwards to the HTML file, but that's definitely a non-trivial task.

For static plots if you install the font and ensure it is accessible to matplotlib then you should be able to just use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants