textwave as x-axis

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:

Make/O/N=3 wave0={2,3,4}, wave1={3,1,2}, pos_wave=p
Make/T/N=3 T_wave={"cond1", "cond2", "cond3"}
Display wave0,wave1
ModifyGraph userticks(bottom)={pos_wave,T_wave}

 

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.