Black Lives Matter. Please consider donating to Campaign Zero's mission of ending police violence in America.

Using subplots and FigureFactory plots


I am trying to plot two plots together using the subplot tool (, 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:
Second, a styled scatterplot:

How would I accomplish this?


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