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:

2 Likes

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

2 Likes