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

Relative sizing for element_text #911

Open
lvlh2 opened this issue Jan 25, 2025 · 1 comment
Open

Relative sizing for element_text #911

lvlh2 opened this issue Jan 25, 2025 · 1 comment
Labels

Comments

@lvlh2
Copy link

lvlh2 commented Jan 25, 2025

In ggplot2, relative sizing for text within a plot can be conveniently achieved using the rel function, as shown in the following example:

plot + theme(axis.title.x = element_text(size = rel(1.5)))

I was wondering if there is a similar feature in plotnine that allows for relative text sizing. Besides, I'm also curious whether it is possible to resize all text relatively in a plot at a time. Any help would be greatly appreciated!

@has2k1
Copy link
Owner

has2k1 commented Jan 27, 2025

Relative text sizing is not possible at the moment. I'm not sure if it will ever be possible, but I will explore it.

@has2k1 has2k1 added the Feature label Jan 27, 2025
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