
Proper titles for wave columns

cgilbri
My code does the job I want it to do, but it would help with the visualization of the data that it produces if I could modifiy the title of the wave columns. My complete code creates several waves in the root folder and then files these with data. The number of columns in each of these root waves is determined by the number of data folders (present in the root folder) which I want the code to work on.
I have a vastly simplified version of my code below. How would I modify the NiceColumnNames function so that instead of getting three columns all named 'PeakAmplitudes', I get three columns named: 'CG1', 'CG2' and 'CG3'?
Thanks,
Function MakeDFs() NewDataFolder/O root:CG1 NewDataFolder/O root:CG2 NewDataFolder/O root:CG3 NewDataFolder/O root:Junk End Function NiceColumnNames (vTPWaveNrB4exp) Variable vTPWaveNrB4exp Variable vTotalNrOfDFs = CountObjectsDFR(root:, 4) Variable vIndex Variable vCounter Variable vNrOfDFs for (vIndex = 0; vIndex < vTotalNrOfDFs; vIndex += 1) String sDFinRoot = GetIndexedObjNameDFR(root:, 4, vIndex) Variable vMatch = StringMatch(sDFinRoot,"CG*") if (vMatch == 1) vNrOfDFs = vNrOfDFs + 1 endif Make/O/N=(vTPWaveNrB4exp*2+5, vNrOfDFs) PeakAmplitudes = NaN endfor End
For details execute:
Unfortunately, there is no way to show the horizontal dimension labels while hiding the horizontal dimension labels.
Another approach is to use table column titles. For example:
For details execute:
September 8, 2014 at 02:35 pm - Permalink