Exclude a portion from a scatter plot
Mostra commenti meno recenti

Can someone please suggest an efficient way to remove the more red part which is lying on the outer side of the yellow curve ?
This is a Xi2 vs Rigidity distribution (scatter plot) for some events. The axes are in log scale.
I need to introduce a function in this scatter plot to remove the outer yellow part from the whole plot.
9 Commenti
Dyuman Joshi
il 26 Lug 2023
Have you tried using logical indexing to remove them or create a new array with values lower than the yellow curve?
Dyuman Joshi
il 26 Lug 2023
Do the indexing for the y values not the x values.
Rivu
il 26 Lug 2023
Dyuman Joshi
il 26 Lug 2023
How do you get the yellow line?
Can you attach the data for all 3 sets of points? (Red and blue points and yellow line)
Rivu
il 26 Lug 2023
dpb
il 26 Lug 2023
@Rivu, as others have already noted, without the data and the logic behind what are red and blue and what defines the yellow line location, nobody can do anything at all specific towards solving your problem.
The general solution has already been given, use logical addressing, but without something to work with, specifics aren't possible and it's expecting too much of the volunteers here to have them also have to make up illustrative datasets for fairly complicated problem for you..."help us help you!"
dpb
il 27 Lug 2023
Attach a .mat file with the data, not just images; nothing can be done with them but look...even better would be to add the code to generate the present figure (w/o the line is ok).
Risposte (0)
Categorie
Scopri di più su Scatter Plots in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
