Hi,
I have a graph with specs limits which are like blue thin lines.
is it possible to modify the color and the size of this lines (USL, LSL)?
best regards
I totally agree with you. However, your question about setting the color and size of the spec limits is a great idea. I suggest you add your idea to the JMP Wish List!
If you are running interactively, running a platform other than the Distribution Platform, and are using the Show Limits() feature in JMP, all you have to do is to right click on the axis, and change the linesize and color of the Reference Lines that have been set automatically.
If your need is to do this in a script, then you will either have to not use the Show Limits() feature and just go and read the spec limits and create your own Reference Lines, or if you have the Show Limits() turned on, then yes, you will have to delete and then add back in the reference lines.
I do not see any options to change the linesize of color of the automatically displayed Spec Limit lines.
The only option would I see would be to add you own reference lines, where you can change the linesize and colors.
thanks for your answer.
I find more useful to define spec limits in the properties of the columns.
This may be what you are looking for.
I was able to change spec limit lines with the Customize feature in the graph I was working. Right click in the graph and go to Customize. In the dialog box look for "Lower Line" or "Upper Line" select one of those and then you can change the color and the size of the line. You can also change the text color and font for the labels by selecting Upper or Lower Label. If you then save the script to the data table your changes will be there anytime you run the script. Just for info, I did this in JMP 13 and 14, but it should work in older versions as well.
Hope this helps
Bill
Great catch.......
in the french version, I can't have the upper or lower lines in the customize box.
I have performed some further investigation. There is a bit of complexity when it comes to the automatic displaying of spec limits.
In the Histogram Platform, there are unique line segments that are created for handling the LSL, Target and USL for the capability analysis. The method for changing them has been descripted by @Bill_Worley. However, if one specifies the "Show Limits()" selection in the spec limits column property, what JMP does, is that it produces Reference Lines in the Axis Box() specification. The significance of this is that in your last response, the graph you are showing should have the Reference Lines for the spec limits available to change from the Axis Settings.
The lines are in the framebox, so sending messages there can change the color and width.
If you go into the frame box and look at the customizations, then you can see where the options are.
After they are set, then copy the frame customizations and paste them into a script window for future used or more editing.
obj=Distribution( Continuous Distribution( Column( :Name( "data" ) ), PpK Capability Labeling( 1 ), Customize Summary Statistics( N Missing( 1 ), N Unique( 1 ) ) ) ); objr = obj << report; objr[framebox(1)]<<{Frame Size( 200, 200 ), DispatchSeg( LabelSeg( 1 ), {Text Color( "Medium Dark Red" )} ), DispatchSeg( Line Seg( 1 ), {Line Color( "Medium Dark Red" ),line width(6)} ), DispatchSeg( LabelSeg( 2 ), {Text Color( "Medium Dark Green" )} ), DispatchSeg( Line Seg( 2 ), {Line Color( "Medium Dark Green" ),line width(6)} )};
I haven't dinked around with the oulier boxplot, it might follow a different set of rules.
With JMP13 in english, I haven't the choice for the USL or LSL lines.
This discussion intrigued me last week, but I did not have time to investigate and Byron's reply was "similar" to what I was going to write. So this is a synopsis of the discussion with a few additions.
Distribution Platform
Names Default to Here(1); dt = Open("$Sample_Data/Semiconductor Capability.jmp"); dist = dt << Distribution( Y( :NPN1, :PNP1, :PNP2, :NPN2, :PNP3 ), Stack(1), Horizontal Layout( 1 ), Vertical( 0 ), Histogram Color("Medium Light Gray") ); _xx = dist << Xpath("//LineSeg"); _xx << Line Width(3); _xx << Line Color("Medium Dark Red"); // or specify RGB Color({r,b,g})
Other platform graphs
Nothing new so far. But here are a few items to note:
The message to add a reference line to an axis box is documented as below. However, not documented is an optional sixth argument that I will call pct that defines the transparency. The value should be 0 up to and including 1 for 0% and 100%, respectively.
axis box << Add Ref Line(number, "linestyle", <"color">, <"label">, <width>)
To delete the old thin blue axis setting ref lines, you need to specify the value. A nice to have would be to remove by value or label, such as a list of axisBox refernces, _xx, and _xx << Remove Ref Line("USL") .
axis box << Remove Ref Line ( value );
frame box << Reference Line Order( pos ); //default position, pos, is 2 above the grid lines but behind all graph elements. frame box << Grid Line Order( pos ); //default is 1 frame box << Add Graphics Script(<order>, <Description("name")>, <script>); /* order An optional argument that specifies the order in which the graphics elements are drawn. The value can be the keyword Back or Forward or an integer that specifies the drawing order for a number of graphics elements. 1 means the object is drawn first. */
I like to find JSL alternatives to GUI interfaces and methods to apply to many similar objects. Attached are 2 jsl scripts. RefLineFunctions.jsl defines 2 functions: ShowSpecs() and ModifyRefLine(). This should be saved and used as an Include() file. The second script RefLineExamples.jsl provides usage for the Distribution and Bivariate platforms. You will need to change the path of the Include() file if you saved it to some other drive, other than c:/temp/ I cannot guarantee this will work in French JMP.
Note the ModifyRefLine() function could use the Remove and Add Ref Line messages, but I kept this as an example of editing axis settings.