Hi I would like help on an issue with scripting a bivariate graph with multiple where clauses.
I need to place multiple graphs in one window organized by the Recipe and the legend shows the specific tools.
Currently I have 6 tools under one recipe and I need to plot 3 tools per graph for the same Recipe.
In total I need 2 graphs for 6 tools under 1 recipe.
I have tried combinations of where clauses, data filters with not hope
dt = Open("........")
NewWindow("......",
Bivariate(
Y( :Column1 ),
X( :Column2),
Histogram Borders( 1 ),
Where(:Recipe == "XXXX" & :Tool == "YYYY" & :Tool == "YYYX & :Tool == "YYXX"), <---- I need to put in multiple tools and recipes to organize by specific words and it does not work through this. Data filtering will exclude the points on first graph but it will also exclude it for second graph.
SendToReport(Dispatch(
{},
"2",
ScaleBox,
{Add Ref Line( 140, Solid, "Black", "", 2 ),
Add Ref Line( 70, Solid, "Black", "", 2 ),
Add Ref Line( 90, Solid, "Black", "", 2 )}
),
Dispatch(
{},
"Bivariate Fit of Value By Date_Time",
OutlineBox,{Close( 1 ), Set Title( "XXXX" )}
),
Dispatch(
{},
"1",
ScaleBox,
{Format( "y/m/d h:m:s", ),
Interval( "Hour" ), Inc( 2 ), Minor Ticks( 0 ),
Tick Font( face( "Arial Unicode MS" ), size( 8 ) ), Show Major Grid( 1 ),
Rotated Labels( "Angled" )}
),
Dispatch(
{},
"Bivariate Report",
FrameBox( 2 ),
{DispatchSeg(
HistSeg( 1 ),
{Fill Color( "BlueCyan" ), Histogram Color( 13 )}
)}
),
Dispatch( {}, "Bivar Plot", FrameBox, {Frame Size( 1100, 180 )} ),
Dispatch(
{},
"Bivariate Report",
FrameBox( 4 ),
{DispatchSeg(
HistSeg( 1 ),
{Fill Color( "BlueCyan" ), Histogram Color( 13 )}
)}
),
),
Dispatch({},"Bivar Plot", FrameBox,{Frame Size(900,274),Row Legend(Tool),Color(1),Color Theme("JMP Default"),Marker(0),Marker Theme(""),Continous Scale(0),Reverse Scale(0),Excluded Rows(0)})
),) << Maximize Window