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

Feature Request: Addition of element_markdown() or something similar, to highlight part of the plot title or subtitle #1256

Open
maxidiazbattan opened this issue Nov 29, 2024 · 2 comments
Labels
Milestone

Comments

@maxidiazbattan
Copy link

maxidiazbattan commented Nov 29, 2024

Hi to all, an interesting feature in ggplot, is element_markdown(), which enables formatting and styling of text elements in plots. This functionality is particularly useful for emphasizing specific portions of titles, subtitles, or annotations, improving the clarity and aesthetics of visualizations without relying heavily on legends.

FrontPage_Makeover_JPMorgan_Bars_Assets

For example, the attached plot demonstrates how element_markdown() can be used to highlight key elements in the title:

"Black-White" is styled in blue, "Hispanic-White" is styled in orange, making the information easier to interpret at a glance.
Additionally, the same technique can be applied to annotations within the plot, such as angled text or styled labels for specific data points.

Incorporating element_markdown() into Let’s-Plot would open up similar possibilities in Python, making the library a more versatile tool for creating presentation-ready visualizations.

@alshan
Copy link
Collaborator

alshan commented Dec 4, 2024

Thanx, this is a great suggestion!

I suppose you are referring to element_markdown() in the ggtext package.

@alshan alshan added this to the New milestone Dec 4, 2024
@alshan alshan added the * label Dec 4, 2024
@maxidiazbattan
Copy link
Author

maxidiazbattan commented Dec 4, 2024

Hi Igor, thank you for taking the suggestion into account. To clarify, I am indeed referring to the element_markdown() from the ggtext package.

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