Skip to content

Relative sizing for element_text #911

Open
@lvlh2

Description

@lvlh2

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions