I would like to separate the black wave on the attached graph into two new waves to display them using different colors and Y-offsets. How can I do it?
I assume you refer to the black wave at the bottom in your image (and not the one with the red data points).
What would be the criterion to split the waves?
Yes, it's the black one on the bottom.
As it can be seen on it, it has only two values (let's say 2 or 1). So I want to separate them in two new waves, one with the "2" values and the other one with the "1" values in order to plot as I explained in my first message. But they need to keep their relative positions with respect to the "2 theta" wave, this is important.
One way to colorize on a point-by-point basis would be to use Color as f(z). Since it appears the wave is binary, simply use the Y wave as the color wave. Pick a color table that has the colors you want, and adjust the parameters of the colorizing to get the particular colors you want out of the color table.
What would be the criterion to split the waves?
Maybe this helps you already:
ModifyGraph offset ={x,y}
is used for offsets.HJ
February 10, 2015 at 10:14 am - Permalink
As it can be seen on it, it has only two values (let's say 2 or 1). So I want to separate them in two new waves, one with the "2" values and the other one with the "1" values in order to plot as I explained in my first message. But they need to keep their relative positions with respect to the "2 theta" wave, this is important.
February 10, 2015 at 10:27 am - Permalink
High= (Int==2) ? 2 : NaN
Low = (Int==1) ? 1 : NaN
NaN might be replaced with zero.
And, of course, these two waves have to be appended to the graph...
HJ
February 10, 2015 at 10:34 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
February 10, 2015 at 12:26 pm - Permalink
HJ
February 10, 2015 at 12:57 pm - Permalink
But that can be handled by making a new wave with altered Y values.
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
February 10, 2015 at 05:30 pm - Permalink
Thank you very much. It was what I needed :)
February 11, 2015 at 07:00 am - Permalink