So I am doing a Bivariate analysis for Current versus Area. I have a column with different IDs like 26,35, etc. and want to perform an analysis for each one and have it show on different plots but in the same GUI that I've put together. Any help would be really appreciated!
You will see below that Column 3 is the Column I sorted!
dt = Current Data Table();
//Change the Max Ic to Max Jc and organize table by reticle
dt << sort( by( Column( 3 ) ), Replace Table );
Column1 = Column( dt, "Corrected Area (um^2)" );
Column2 = Column( dt, "Max Ic (mA)" );
Column3 = New Column( "Max Jc (mA/um^2)" );
Column3 << set values( (Column2 << get as matrix) * 100 );
Column3 << set name( "Max Jc (mA/um^2)" );
//Obtain the Max Ic
MaxIc = Col Max( Column2 );
Save Text File( "$Python.py", str( MaxIc ), Mode( "Append" ) );
//Save Text File("$Python.py", MaxIc, Mode("Append") );
//allows manipulation to columns to go unaltered between runs
Close( dt, Save( filepath ) );
//Call CreateBivariate to do a bivariate (two variable) analysis
//list allows you to do more analysis
status = List( 0, 0 );
New Window( "Custom Analysis",
H List Box(
V List Box(
Panel Box( "Controls",
Text Box( "Choose Analysis" ),
choice = Check Box(
{"Distribution", "Fit Line"},
current = choice << Get( 1 );
xParam = Column1; //Corrected Area
yParam = Column2; //Max Ic
//Get the distribution
If( And( current, Not( status[1] ) ),
dt << Append(
dt = V List Box(
bivDistribution = Distribution( Y( Eval( yParam ) ), X( Eval( xParam ) ), )
)
);
status[1] = 1; //mark as present
);
//Perform a Bivariate Analysis
current = choice << Get( 2 );
If( And( current, Not( status[2] ) ),
dt << Append(
dt = V List Box(
bivPlatform = Bivariate(
Y( Eval( yParam ) ),
X( Eval( xParam ) ),
Fit Line( {Line Color( {213, 72, 87} )} ),
Fit Line( {Line Color( {57, 177, 67} )} ),
)
)
);
status[2] = 1; //mark as present
);
)
);
),
dt = V List Box()
)
);