Plotting xy curve with indexwave
linepic
Hi, I have three wave x, y (for 1d plotting) and index wave.
I would like to do 'display y vs x' with line (not scatter).
is there any way to do this without splitting x and y wave?
Thank you for your help!
The way I'm reading your question, display ywave vs xwave and ModifyGraph mode=0 will give a line through your xy coords. So, I guess you mean something else? What do you want to do with the index wave?
December 4, 2018 at 12:39 am - Permalink
SetScale/I x, -5, 5, yWave
yWave = gauss(x,0,1)
Display ywave
ModifyGraph swapXY=1
I am not sure if this is what you want, but there is the `swapXY = 1` option in `ModifyGraph`:
This will allow you to have only yWave plotted with lines between points and not having to create a separate x wave.
Note that this option is global for all elements in the current graph, so if you want to add another axis with "normal" behavior, you need to put this into a sub-window.
December 14, 2018 at 09:01 am - Permalink
In reply to Make yWave SetScale/I x, -5,… by ukos
Note that you can do Display/VERT or AppendToGraph/VERT to get the effect of SwapXY applied to a single trace. I can't tell if this actually solves the OP's problem, though.
December 14, 2018 at 10:34 am - Permalink