Quantcast
Channel: MATLAB Central Newsreader Recent Posts
Viewing all articles
Browse latest Browse all 19628

Looped inset plot

$
0
0
I need help trying to use an inset plot in a loop.

What I have is a scatter plot and a box plot.
This is a demonstration of trimming outliers, and not meant to pass peer review.

The script starts with all the data in a scatter plot, and then trims one outlier on each pass through the loop, pauses a moment, and then does it again until all the outliers are removed. An lsline and some other information like R^2 is displayed in the plot as well.
A box plot runs at the same time.

I would like to inset the box plot into the scatter plot.

The problem with all the solutions I have found is that on the second pass through, it puts the scatter plot into the inset area, rather than as the main plot. When I try to use subplots, the second plot is opaque the main plot underneath is not visible.

Thank you in advance

Viewing all articles
Browse latest Browse all 19628

Trending Articles