How to use 'Make Trace Different' on command line?

Hi, I'm a new user of Igor Pro.
I don't know how to command 'Make Traces Different' on command window or procedure window.
Make Traces Different is in packages of graph.
Eventually, I want to make a function using 'Make Traces Different'.

Thank you very much.
To use the 'Make Traces Different' procedure, type this into your own procedure window:
#include <KBColorizeTraces>

You don't say *how* you want to "make them different".

I'll guess you want to set the trace colors. In that case just call CommonColorsButtonProc with any string parameter value (it is not used) from your own function:
CommonColorsButtonProc("")

--Jim Prouty
Software Engineer, WaveMetrics, Inc.
Thank you very very much !!

I wise up if i click any package, the corresponding command appear on procedure window.
BUT, I can't find detailed command.
For example, if i click 'Polar Graph' on packages of windows, '#include ' is appear in procedure.
But, I can't find the command of 'Radius Data', 'Angle Data', and 'Append Trace' in Polar graph.
To extend my question, there are so many GUI buttons in packages.
How can I know all the commands of the package ??

Thank you again.

Jinhyung Kim wrote:
Thank you very very much !!

I wise up if i click any package, the corresponding command appear on procedure window.
BUT, I can't find detailed command.
For example, if i click 'Polar Graph' on packages of windows, '#include ' is appear in procedure.
But, I can't find the command of 'Radius Data', 'Angle Data', and 'Append Trace' in Polar graph.
To extend my question, there are so many GUI buttons in packages.
How can I know all the commands of the package ??


#include opens another procedure file into a window. Use Igor's "Windows/Procedure Windows" submenu to see the package's procedure window(s).

Calling routines in the Polar Graphs package is not simple. If you do, make sure to update Igor to 6.34A first (it has easier-to-program functions you can call).

--Jim Prouty
Software Engineer, WaveMetrics, Inc.
You could call

KBColorizeTraces#KBColorTablePopMenuProc("",0,"ColdWarm")


if you include KBColorizeTraces:

#include <KBColorizeTraces>


but it might be better to just use this edited copy of the KBColorizeTraces code for your own use:

Function ApplyColorTableToTopGraph(ctabname)
    String ctabname

    String graphName = WinName(0, 1)
    if (strlen(graphName) == 0)
        return -1
    endif

    Variable numTraces = ItemsInList(TraceNameList(graphName,";",3))

    if (numTraces <= 0)
        return -1
    endif
   
    Variable denominator= numTraces-1
    if( denominator < 1 )
        denominator= 1    // avoid divide by zero, use just the first color for 1 trace
    endif

    ColorTab2Wave $ctabname // creates M_colors
    Wave M_colors
    Variable numRows= DimSize(M_colors,0)
    Variable red, green, blue
    Variable i, index
    for(i=0; i<numTraces; i+=1)
        index = round(i/denominator * (numRows-1))  // spread entire color range over all traces.
        ModifyGraph/W=$graphName rgb[i]=(M_colors[index][0], M_colors[index][1], M_colors[index][2])
    endfor
    return 0
End

which you can call as:
ApplyColorTableToTopGraph("ColdWarm")

--Jim Prouty
Software Engineer, WaveMetrics, Inc.