# Adding a new separate figure to existing one

**URL:** <https://community.plotly.com/t/adding-a-new-separate-figure-to-existing-one/22112>\
**Category:** 📊 Plotly Python\
**Created:** [April 10, 2019, 9:08am UTC](https://community.plotly.com/t/adding-a-new-separate-figure-to-existing-one/22112 "2019-04-10T09:08:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![doga](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@doga](https://community.plotly.com/u/doga)\
**Post date:** [April 10, 2019, 9:08am UTC](https://community.plotly.com/t/adding-a-new-separate-figure-to-existing-one/22112/1 "2019-04-10T09:08:40Z")

</div>

Hi

My 3d figure seems OK. I want to add a new separete figure ( a barcahart) without touching the existing one.  
I mean  
fig=go.Figure(data=data,layout=layout) # this 3D figure OK  
Now I need to put another figure ( barcahart) near to existing 3d figure.

I tried fig.append\_trace, but it failed.

How can I add a new separate figure beside the existing one ?

regards

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [April 10, 2019, 10:48am UTC](https://community.plotly.com/t/adding-a-new-separate-figure-to-existing-one/22112/2 "2019-04-10T10:48:50Z")

</div>

Hi @doga,

We don’t have anything built in right now to support merging multiple figures into a single figure. It is something that we’re considering for version 4 if we have enough time (See [https://github.com/plotly/plotly.py/issues/1482](https://github.com/plotly/plotly.py/issues/1482)).

In the meantime, the way to do this is to use an approach like the “Mixed Subplots” example ([https://plot.ly/python/mixed-subplots/](https://plot.ly/python/mixed-subplots/)).

Hope that helps!  
-Jon

---

<div class="post-metadata">

**Author:** ![doga](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@doga](https://community.plotly.com/u/doga)\
**Post date:** [April 10, 2019, 12:55pm UTC](https://community.plotly.com/t/adding-a-new-separate-figure-to-existing-one/22112/3 "2019-04-10T12:55:31Z")

</div>

Thank you,

I am still dealing with mixed subplot example.

I am not clear on how barchart’s (locations) size and place is formed in the layout in that example ?

regards

---

<div class="post-metadata">

**Author:** ![mini\_geek](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@mini\_geek](https://community.plotly.com/u/mini_geek)\
**Post date:** [April 11, 2019, 9:57am UTC](https://community.plotly.com/t/adding-a-new-separate-figure-to-existing-one/22112/4 "2019-04-11T09:57:22Z")

</div>

you can try adding another trace and repositioning your subplots; however, it’ll be best if you share your code.

---

<div class="post-metadata">

**Author:** ![doga](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@doga](https://community.plotly.com/u/doga)\
**Post date:** [April 11, 2019, 10:37am UTC](https://community.plotly.com/t/adding-a-new-separate-figure-to-existing-one/22112/5 "2019-04-11T10:37:57Z")

</div>

> [@jmmease](#):
>
> Mixed Subplo

thank you

with Mixed Subplot it seems ok now.
