patchworklib icon indicating copy to clipboard operation
patchworklib copied to clipboard

Usage with matplotlib PdfPages

Open ArtiVlasov opened this issue 3 years ago • 1 comments

Hey,

amazing package making life so much easier :)

I was wondering if it is possible to use patchworklib with PdfPages from matplotlib?

I am generating plots using plotnine, then assemble two side by side using patchworklib and then I would like to export a list of the patchwork brick objects to a multi-page PDF. So far I did not figure out how to properly chain the commands, so I was wondering if it is possible in the first place?

Thanks, Artyom

ArtiVlasov avatar Sep 22 '22 13:09 ArtiVlasov

I'm sorry for the late response. The current implementation doesn't support such a function, because patchworklib use only a single figure object in its back-end implementation. However, I will keep this in my mind as an improvement for the next version. Thank you for your report.

ponnhide avatar Sep 23 '22 05:09 ponnhide