@lguerard Here is the visual argument for the pdf graphs:
import plotly.figure_factory as ff
import numpy as np
np.random.seed(2020)
group_labels = ['data1', 'data2'] # name of the datasets
data1 = np.random.randn(1000)
data2 = 2+1.3*np.random.randn(500)
fig1 = ff.create_distplot([data1, data2],
group_labels, histnorm= '', bin_size=0.5, show_curve=True )
fig1.update_layout(width=700, bargap=0.01)
fig1.show()
fig2 = ff.create_distplot([data1, data2],
group_labels, histnorm= '', bin_size=0.5, show_hist=False, show_curve=True, show_rug=False )
fig2.update_layout(fig1.layout)
Now I change the yaxis_range in the second plot to see where is its position in the first one, and why it cannot be seen:
fig2.update_layout(yaxis_range= [-1,205])