Hi,
I want to use JSL to plot y1 (in log scale) vs. x1 for only Case == a AND Parameter value ==1 and then fit a line to this y1 (in log) vs. x1 (in linear scale).
Case | x1 | y1 | Parameter |
a | 1.056706 | 1.058345 | 1 |
a | 1.914662 | 2.495931 | 1 |
a | 1.881596 | 2.414752 | 2 |
b | 1.792529 | 2.208976 | 1 |
b | 1.452459 | 1.572173 | 2 |
b | 1.469782 | 1.599646 | 2 |
d | 1.172629 | 1.188425 | 1 |
d | 1.613962 | 1.847737 | 2 |
d | 1.540313 | 1.716545 | 3 |
b | 1.307825 | 1.360463 | 1 |
d | 1.934486 | 2.545905 | 2 |
a | 0.65008 | 1.915694 | 1 |
b | 0.341004 | 1.406359 | 1 |
c | 0.317435 | 1.3736 | 3 |
d | 0.014095 | 1.014195 | 2 |
a | 0.122089 | 1.129854 | 3 |
a | 0.727195 | 2.069267 | 1 |
b | 0.164983 | 1.179373 | 8 |
c | 0.643878 | 1.903849 | 1 |
a | 0.501787 | 1.65167 | 1 |
I am trying this but it gives me error:
Bivariate(
Y( :Name( "Y1" ) ),
X( :X1 ),
Fit Special( yTran( "Log" ), {Line Color( {213, 72, 87} )} ),
Fit Where(
:Case == "A"
:Parameter == "1",
Fit Special( yTran( "Log" ), {Line Color( "Dark Green" )} ),
),
SendToReport(
Dispatch(
{},
"1",
ScaleBox,
{Min( 60.936357421875 ), Max( 81.283232421875 ), Inc( 2 ),
Minor Ticks( 1 ), Label Row(
{Show Major Grid( 1 ), Show Minor Grid( 1 )}
)}
),
Dispatch(
{},
"2",
ScaleBox,
{Scale( "Log" ), Format( "Scientific", 11 ), Min( 0.0000002 ),
Max( 0.000634968347287381 ), Inc( 1 ), Minor Ticks( 1 ),
Label Row(
{Show Major Grid( 1 ), Show Minor Grid( 1 ), Set Font Size( 12 )}
)}
)
)
);
Regards,
AD