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

ggtext-like support? #612

Open
kendavidn opened this issue Aug 20, 2022 · 2 comments
Open

ggtext-like support? #612

kendavidn opened this issue Aug 20, 2022 · 2 comments
Labels

Comments

@kendavidn
Copy link

Hello! Thank you for your amazing package. Just wondering whether there are plans on the roadmap to include support for markdown/HTML-like text formatting for text labels. Similar to what we have with {ggtext}. https://github.com/wilkelab/ggtext

@has2k1 has2k1 added the Feature label Aug 22, 2022
@has2k1
Copy link
Owner

has2k1 commented Aug 23, 2022

It is not possible at the moment, the matplotlib graphics stack (on which plotnine depends) makes it nearly impossible. This needs long term consideration and work, but the future is bright!

@kendavidn
Copy link
Author

Hi again! I just found two python libraries, flexitext and highlight_text, that allow styling of text in matplotlib: https://github.com/tomicapretto/flexitext and https://github.com/znstrider/highlight_text.

Do you know if either of these would be compatible with plotnine?

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

No branches or pull requests

2 participants