
textwave as x-axis

d_lenz
Hi everybody, I am trying to plot data gainst a textwave. That is actually quite easy, but gives bar graphs as output. If I change the graph mode to "lines and markers" however, the datapoints are still offset on the x-axis, as it were with the bar graphs before.
The x-scaling of the data waves stil gives 0,1,2, but the markers are located at pseudo-x-values of 0.25, 1.25 and 2.25 for wave1 and 0.75, 1.75 and 2.75 for wave2.
make/N=3 wave0={2,3,4}; make/N=3 wave1={3,1,2} make/T/N=3 T_wave={"cond1", "cond2", "cond3"} display wave0 vs T_wave; appendtograph wave1 vs T_wave ModifyGraph mode=4
How can I get both wave0 and wave1 at the centered values of the x-axis?
Cheers,
Dominik
If I understand you correctly you are looking for this:
October 21, 2021 at 02:24 am - Permalink
Exactly, thank you! :)
October 21, 2021 at 02:59 am - Permalink
Or, rather, set the "Grouping Mode" for wave0 to "Keep with Next". In commands, that means
ModifyGraph toMode(wave0)=-1
Read about the grouping modes: DisplayHelpTopic "Stacked Bar Charts"
The help talks mostly about bars, but in fact, it applies to any of the trace display modes.
October 21, 2021 at 12:01 pm - Permalink