plotnine icon indicating copy to clipboard operation
plotnine copied to clipboard

ggtext-like support?

Open kendavidn opened this issue 3 years ago • 2 comments

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

kendavidn avatar Aug 20 '22 18:08 kendavidn

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!

has2k1 avatar Aug 23 '22 21:08 has2k1

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?

kendavidn avatar Feb 23 '23 18:02 kendavidn