<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change Line Color and Line Style in all platforms in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819781#M99789</link>
    <description>&lt;P&gt;Can you please give me sample script that can recolor and change reference line style for all the spec limits in the open report(s) ?&lt;BR /&gt;Just looking for ideas / starting point.&lt;BR /&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2024 13:45:53 GMT</pubDate>
    <dc:creator>vikramavtar</dc:creator>
    <dc:date>2024-11-29T13:45:53Z</dc:date>
    <item>
      <title>Change Line Color and Line Style in all platforms</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819691#M99777</link>
      <description>&lt;P&gt;I am looking for a method to automatically change line color and style on all platforms (Distribution, variability, bivariate, oneway) for all columns with spec limits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I loaded spec limits from "Limits Table" at "Analyze-Quality and Process-Manage Spec limits" and saved to column properties.&lt;/P&gt;&lt;P&gt;These spec limits are shown as reference lines in all platforms ((Distribution, variability, bivariate, oneway) which is great.&lt;/P&gt;&lt;P&gt;But, default line color (Blue) and style are not ideal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to automatically change line color and style for all columns ?&lt;/P&gt;&lt;P&gt;I can manually line color and style one at a time within each platforms, but that is too manual when trying to create hundreds of charts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using JMP 16.1.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 22:23:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819691#M99777</guid>
      <dc:creator>vikramavtar</dc:creator>
      <dc:date>2024-11-28T22:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change Line Color and Line Style in all platforms</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819780#M99788</link>
      <description>&lt;P&gt;I don't think you can set any specific color for spec limits column property which would apply to all platforms. You can attempt to create a script which you could run when you want to recolor all the spec limits in the open report(s). This is most like quite annoying to do as platforms do not handle spec limits in same way.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a wish list item related to this&lt;LI-MESSAGE title="A preference for adjusting the default color and thickness of Spec Limit lines in graphs" uid="698874" url="https://community.jmp.com/t5/JMP-Wish-List/A-preference-for-adjusting-the-default-color-and-thickness-of/m-p/698874#U698874" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 12:25:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819780#M99788</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-29T12:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Change Line Color and Line Style in all platforms</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819781#M99789</link>
      <description>&lt;P&gt;Can you please give me sample script that can recolor and change reference line style for all the spec limits in the open report(s) ?&lt;BR /&gt;Just looking for ideas / starting point.&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 13:45:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819781#M99789</guid>
      <dc:creator>vikramavtar</dc:creator>
      <dc:date>2024-11-29T13:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change Line Color and Line Style in all platforms</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819792#M99790</link>
      <description>&lt;P&gt;Which platforms? Do they have to be spec limits or could you create new lines on top of them? Are the reports created via a script or does it have to work with any report user has created manually?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 13:58:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819792#M99790</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-29T13:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Line Color and Line Style in all platforms</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819793#M99791</link>
      <description>&lt;P&gt;Ideally all of these platforms ((Distribution, variability, bivariate, oneway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New lines on top of spec limits is ok, but please note that spec limits in my data table are already saved as column property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, looking to update line colors and styles for any report user creates manually.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 14:12:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819793#M99791</guid>
      <dc:creator>vikramavtar</dc:creator>
      <dc:date>2024-11-29T14:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change Line Color and Line Style in all platforms</title>
      <link>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819799#M99792</link>
      <description>&lt;P&gt;Some platforms use ref lines and some use graphic scripts for this. &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Distribution, Graph Builder, One Way, Variability Chart - use ref lines&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1732890995385.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70735iAE4C9B1DAF60ECAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1732890995385.png" alt="jthi_0-1732890995385.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1732891122812.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70738i99263145F8976A8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1732891122812.png" alt="jthi_3-1732891122812.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1732891087391.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70737iD45D9C43BE6DF0E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1732891087391.png" alt="jthi_2-1732891087391.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1732891179330.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70739iF54EBC12EECEF121/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_4-1732891179330.png" alt="jthi_4-1732891179330.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Process Capability histogram - uses Graphic Script:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1732891049697.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/70736iB0F6D7C5C6BD2AB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1732891049697.png" alt="jthi_1-1732891049697.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will only handle the ref lines:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

ml = dt &amp;lt;&amp;lt; Manage Limits(
	Process Variables(dt &amp;lt;&amp;lt; Get Column Group("Processes")),
);
ml &amp;lt;&amp;lt; Show Limits All;
ml &amp;lt;&amp;lt; Save to Column Properties;
ml &amp;lt;&amp;lt; Close Window;

dt &amp;lt;&amp;lt; Distribution(
	Stack(1),
	Continuous Distribution(
		Column(:NPN1),
		Horizontal Layout(1),
		Vertical(0),
		Process Capability(Use Column Property Specs)
	)
);

// "Tool script" starts from here
Names Default To Here(1);
abs = Current Report() &amp;lt;&amp;lt; XPath("//AxisBox");

idx = 0;
For Each({ab}, abs,
	s = ab &amp;lt;&amp;lt; get script;
	For Each({cur_s}, s,
		If(Head Name(cur_s) == "Add Ref Line",
			l = Substitute(Name Expr(cur_s), Expr(Add Ref Line()), Expr(List()));
			If(Contains(l, "LSL") | Contains(l, "Target") | Contains(l, "USL"),
				// this isn't documented
				idx++;
				Eval(EvalExpr(
					ab &amp;lt;&amp;lt; Update Ref Line(1, Expr(idx), "Solid", "Orange", l[4], 3);
				));
			);
		);
	);
);

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I does require some testing and I will most likely turn this into add-in when I have bit of time&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 14:59:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-Line-Color-and-Line-Style-in-all-platforms/m-p/819799#M99792</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-11-29T14:59:34Z</dc:date>
    </item>
  </channel>
</rss>

