Origin 2021b, we introduced grouped marginal plots (menu Plot:Statistical:Grouped Marginal Plot) where multiple groups of XY data can be examined in one graph. The graph below shows a scatter plot of 3 groups of XY data on the main layer and the distribution curve of X data in each group on the top layer and the distribution curve of Y data in each group on the right layer. For this new plot type, the main layer and the side layers can be highly customized.
In Origin 2021b, You can choose Help: Learning Center… On Graph Samples tab, enter keyword 2021b and find this graph sample with the associated data.

Options for main layer:
- Scatter
- Scatter with Linear Regression
- Kernel Density Contour Fill
- Kernel Density Contour Line
Options for top/right Layer:
- Histograms
- Stacked Histograms
- Box Charts
- Violins
- Distributed Curves
- Distributed Curves with Fill
- Histograms with Curves
The right layer follows the top layer by default. You can change it to be different from the top layer, if needed.