Using subplots and FigureFactory plots

Hi!

I am trying to plot two plots together using the subplot tool (https://plot.ly/python/subplots/), but am running into the issue that one of the items I’m trying to plot isn’t actually a “trace”. For instance, let’s say I wanted to plot the two following graphs:

First, a distplot: https://plot.ly/python/distplot/#plot-normal-curve
Second, a styled scatterplot: https://plot.ly/python/line-and-scatter/#scatter-with-a-color-dimension

How would I accomplish this?

Thanks!

Inserting a plot generated via a FigureFactory function into a subplot is a bit tricky.
Here is a Jupyter Notebook explaining how to to deal with such subplots:

1 Like

I’ve sought for this for long time.
Thank you so much, empet.

1 Like
three reasons why you should buy plotly pro: support open source, get great support, host your plots and dashboards online