plotnine icon indicating copy to clipboard operation
plotnine copied to clipboard

How to draw plotnine figures on a existing matplotlib ax object?

Open vspinu opened this issue 3 months ago • 1 comments

Hello!

I no longer see _draw_using_figure in the code base? What is the new way to combine p9 with standard matplotlib plots in the same figure?

Thanks!

vspinu avatar Sep 10 '25 13:09 vspinu

To support plot composition (which shipped in v0.15.0 and is gaining more features), plotnine needed more control of the figure so you cannot bring your own figure.

This may be temporary but it is hard to tell at the moment. In any way, it would be nice to see a concrete example of what you are trying to do (may be using plotnine < 0.15). That could help shape the potential solution.

has2k1 avatar Sep 11 '25 02:09 has2k1