ponnhide / patchworklib

Patchwork for matplotlib: A subplot manager for intuitive layouts in matplotlib, seaborn, and plotnine.
GNU General Public License v3.0
370 stars 24 forks source link

plotnine Plot Title Has Incorrect Location When Using patchworklib #49

Closed imahorrry closed 4 months ago

imahorrry commented 11 months ago

image

Code to reproduce:

import sys
import patchworklib as pw
from plotnine import *
from plotnine.data import *
import plotnine
print(pw.__version__)
print(plotnine.__version__)

g1 = pw.load_ggplot(ggplot(mtcars) + geom_point(aes("mpg", "disp")) + ggtitle('abcde'), figsize=(2, 3))
g1.savefig()
imahorrry commented 11 months ago

The titles are in the correct location if there's more than one subplots.

image

ponnhide commented 9 months ago

Sorry for the late response, I have modified this problem. Could you check the developmental version that can be installed by "pip install git+https://github.com/ponnhide/patchworklib.git"?

imahorrry commented 4 months ago

Confirm fixed.