Exclude a portion from a scatter plot
이전 댓글 표시

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
Dyuman Joshi
2023년 7월 26일
Have you tried using logical indexing to remove them or create a new array with values lower than the yellow curve?
Dyuman Joshi
2023년 7월 26일
Do the indexing for the y values not the x values.
Rivu
2023년 7월 26일
Dyuman Joshi
2023년 7월 26일
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
2023년 7월 26일
dpb
2023년 7월 26일
@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
2023년 7월 27일
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).
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
