# Possible to combine a PyObject plot and Plots plot for customed layout?

**URL:** <https://discourse.julialang.org/t/possible-to-combine-a-pyobject-plot-and-plots-plot-for-customed-layout/62463>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [June 6, 2021, 9:54am UTC](https://discourse.julialang.org/t/possible-to-combine-a-pyobject-plot-and-plots-plot-for-customed-layout/62463 "2021-06-06T09:54:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![EuRoXy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/euroxy/32/13970_2.png) [@EuRoXy](https://discourse.julialang.org/u/EuRoXy)\
**Post date:** [June 6, 2021, 9:54am UTC](https://discourse.julialang.org/t/possible-to-combine-a-pyobject-plot-and-plots-plot-for-customed-layout/62463/1 "2021-06-06T09:54:00Z")

</div>

I have a PyObject plot (geo-map involving projections and features from Cartopy via PyCall), and intend to combine it with violin plots from StatsPlots for a specific layout. Trying and searching around find no success.

I try something like this, where p1 is the PyObject, vio1 is the Plots object using PyPlotBackend():

```julia
l = @layout [a b]
p = PyPlot.plot(p1, vio1, layout=l)

```

which gives the error:

```julia
> (in a Julia function called from Python)
JULIA: MethodError: no method matching iterate(::Plots.Plot{Plots.GRBackend})

```

and

```julia
l = @layout [a b]
p = Plots.plot(p1, vio1, layout=l)
> MethodError: no method matching Plots.Plot{Plots.PyPlotBackend}(...)

```

Is there a way to put a `PyObject <matplotlib.collections.QuadMesh object at ...>` and a `Plots.Plot{Plots.PyPlotBackend}` together as subplots for a specific layout here e.g. through conversion? Otherwise I might need to use external software like PowerPoint or similar…

---

<div class="post-metadata">

**Author:** ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)\
**Post date:** [June 6, 2021, 12:08pm UTC](https://discourse.julialang.org/t/possible-to-combine-a-pyobject-plot-and-plots-plot-for-customed-layout/62463/2 "2021-06-06T12:08:17Z")

</div>

You can `plot()` an image. Is it possible to save the PyObject as an image, and include it that way?
