I Tried the exact command but with no change to the final plot, here is my code
Simple_Plot = Function({dt, file_name},
plot_filename = Munger(file_name, Length(file_name) - 3,4, "_plot.png") ;
plot_path = ::plots_output_path || plot_filename;
plot_title = Munger(file_name, Length(file_name)-3,4,"");
gb_obj = dt << Graph Builder(
Title(plot_title),
Show Window(1),
Size(::SizeX, ::SizeY),
Show Control Panel(0),
Variables(
Y( :Data ),
Group X( :TestNameReference ),
Group X( :TestTemperature ),
Overlay(:WaferNumber)
),
Elements(
Box Plot( Y, Legend( 1 ) ), // Legend is optional but helpful
Caption Box(Y, Legend( 2 ), Summary Statistic( "Mean" ), Location( "Top" ) ),
Caption Box(Y, Legend( 3 ), Summary Statistic( "Std Dev" ), Location( "Bottom" ) )
)
);
gb_report = gb_obj << Report;
gb_report << Prepend(Outline Box(plot_title), Spacer Box(Size(::TitleSize1, ::TitleSize2)));
gb_obj << Bring Window To Front;
dt << Select All Rows;
//Throw();
gb_obj << Save Picture( plot_path, "png" );
Print(" Plot saved: " || plot_filename);
Close(gb_obj, no save);
);
If (Contains (file_name, "Continuity_Test" ),
Print("Generating plot for: " || file_name);
//Column(dt,"TestNameReference") << Set Property("Value Ordering", "Custom");
Column(dt,"TestNameReference")<< Set Property("Value Order", {Custome Order({"Continuity_VDD", "Continuity_GND"})});
dt<<Save();
Simple_Plot(dt,file_name);
);