Names Default to Here(1); Include("c:/temp/RefLineFunctions.jsl"); wait(0); dt = Open("$Sample_Data/Semiconductor Capability.jmp"); //---run in blocks to see the changes //Distribution ShowSpecs("NPN1", 1); dist = dt << Distribution( Y( :NPN1, :PNP1, :PNP2, :NPN2, :PNP3 ), Stack(1), Horizontal Layout( 1 ), Vertical( 0 ), Histogram Color("Medium Light Gray") ); //--- Note that only NPN1 has spec limits on the box plots _lseg = dist << Xpath("//LineSeg"); _lseg << Line Width(3); _lseg << Line Color("Medium Dark Red"); // or specify RGB Color({r,b,g}) //--- Note that the spec limits for the box plot are still thin blue lines, customized via the axisbox wait(3); _xb = dist << Xpath("//AxisBox['@Description=1']"); ModRefLine(_xb, "Target", "Green",3); _fb << Reference Line Order(1); //the top layer, at the bottom _fb << Inval; _fb << Update Window(); wait(3); //use something big to be last, i.e., on top _fb << Reference Line Order(100); //the top layer, at the bottom _fb << Inval; _fb << Update Window(); //____________________________________________________________________________ //Bivariate ShowSpecs("PNP1", 1); ShowSpecs("NPN1", 1); biv = dt << Bivariate( Y( :PNP1 ), X( :NPN1 ) ); _xb = biv << Xpath("//AxisBox"); //should get 2 ModRefLine(_xb, {"LSL","USL"}, {160,0,190},2,1,.5); ModRefLine(_xb, "Target", "Medium Dark Red",3, "Solid",.5); _fb = biv << Xpath("//FrameBox"); _fb << Reference Line Order(1); _fb << inval; _fb << Update Window(); wait(3); biv << Histogram Borders(1); //note the lines are behind the histograms _fb = biv << Xpath("//FrameBox"); _fb << Reference Line Order(200); _fb << inval; _fb << Update Window(); //now the spec lines are on top.