I was trying to plot barplot and scatterplot in the same plot in plotly, but it shows only scatterplot.
How to show both the plots?
import
You can do something like so:
fig = make_subplots(rows=1, cols=2) fig.add_trace(trace1, row=1, col=1) fig.add_trace(trace2, row=1, col=2) fig.update_layout(xaxis=dict(tickangle=90)) fig.show()
Which will produce the following graph: