Exclude a portion from a scatter plot

7 views (last 30 days)
Rivu
Rivu on 26 Jul 2023
Commented: dpb on 27 Jul 2023
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 Comments
Rivu
Rivu on 26 Jul 2023
Edited: Rivu on 26 Jul 2023
Okay, I apologise for the less information provided.
Here is the brief description of what the plot is : Using matlab , a selection criteria has been developed to distinguish between anti particles and particles. A data is generated when the program is processed. The data contains information about the Rigidity , DeDx , beta (velocity), xi2 etc of the particular particle.
An instance is depicted in the snap below ;
From the data obtained , the values are plotted in a scatter plot to visualize the distribution of Xi2 as a function of Rigidity(Rig) . The x and y axis have been plotted in log scale .
Here blue dots are values of particles and red dots are absolute values of antiparticles.
Now the main objective is to introduce a function in the code so as to exclude most of the antiparticles. From the plot it is observed that 97% of the antiparticles allign in the exterior diagonal portion of the distribution. So with that yellow line (which I have painted afterwards), I wanted to refer to the part of the plot which I want to exclude.
Therefore in a sentence , I want a suggestion as to how to exclude a diagonal portion of a log log scatter plot using Matlab.
I hope I was able to make some sense.
dpb
dpb on 27 Jul 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).

Sign in to comment.

Answers (0)

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!