"marginal plots" for heatmaps


Is there an idiomatic way of plotting line charts parallel to the x and y axes of a heatmap that is being generated using imshow? this can be useful for some cases where you are visualizing a matrix as a heat map, and there are time series that bear meaning for each axis of the matrix, which you’d like to visualize parallel to the two axes.

Much like histograms parallel to the axes when you have a joint probability visualized, but for the case that the main plot area is a heat map and the accompanying plots parallel to the axes are line plots.

Is that very possible with plotly without degressing to very delicate hackery?

I have found marginal plotting features documented here, but only for other specific plot types.