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

Patchworklib inadvertently removes subtitles in ggplot objects drawn by plotnine #57

Open
oracle5th opened this issue Apr 19, 2024 · 0 comments

Comments

@oracle5th
Copy link

oracle5th commented Apr 19, 2024

Code to reproduce:

import patchworklib as pw
from plotnine import (ggplot, aes, geom_point, geom_boxplot, labs)
from plotnine.data import mtcars

g1 = pw.load_ggplot(ggplot(mtcars) 
                    + geom_point(aes("mpg", "disp"))
                    + labs(title='title1', subtitle='subtitle1'),
                    figsize=(2,3))
g2 = pw.load_ggplot(ggplot(mtcars) 
                    + geom_boxplot(aes("gear", "disp", group="gear"))
                    + labs(title='title2', subtitle='subtitle2'),
                    figsize=(2,3))

g = (g1|g2)
g.savefig('test.pdf')

image

@ponnhide ponnhide added enhancement New feature or request and removed enhancement New feature or request labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants