<?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 color of fitted line in Nonlinear in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-color-of-fitted-line-in-Nonlinear/m-p/805066#M98305</link>
    <description>&lt;P&gt;One option could be to overlay the graphic script with other graphic script. There might be a way to add pen color to the "Current Model Fit" but I'm not sure how&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Nonlinear Examples/US Population.jmp");
obj = dt &amp;lt;&amp;lt; Nonlinear(Y(:pop), X(:"X-formula"n), Finish());
Eval(EvalExpr(
	Report(obj)[FrameBox(1)] &amp;lt;&amp;lt; Add Graphics Script(
		p = Expr(Report(obj)[FrameBox(1)]);
		Pen Color("Red");
		f1 = (p &amp;lt;&amp;lt; Find Seg(Top Seg(1))) &amp;lt;&amp;lt; get script;
		f2 = Arg(f1);
		If(Head Name(f2) == "Y Function",
			Eval(f2);
		);
	);	
));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Oct 2024 11:16:33 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-10-11T11:16:33Z</dc:date>
    <item>
      <title>Change color of fitted line in Nonlinear</title>
      <link>https://community.jmp.com/t5/Discussions/Change-color-of-fitted-line-in-Nonlinear/m-p/804943#M98281</link>
      <description>&lt;P&gt;I am using the Nonlinear platform to fit y as a nonlinear function of x. In the plot of y=f(x), I want to change the color of the fitted curve from default black to some other color, so I can use copy and paste frame contents to overlay color-coded versions of the curve as I make manual adjustments to the parameters. By right-clicking in the plot area I am able to select Customize and then change the color of the markers, but I don't see any way of changing the color of the fitted curve. Is it possible to do that (change the color of the fitted curve), and if so, how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 22:57:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-color-of-fitted-line-in-Nonlinear/m-p/804943#M98281</guid>
      <dc:creator>BurdenOfProof</dc:creator>
      <dc:date>2024-10-10T22:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of fitted line in Nonlinear</title>
      <link>https://community.jmp.com/t5/Discussions/Change-color-of-fitted-line-in-Nonlinear/m-p/805066#M98305</link>
      <description>&lt;P&gt;One option could be to overlay the graphic script with other graphic script. There might be a way to add pen color to the "Current Model Fit" but I'm not sure how&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Nonlinear Examples/US Population.jmp");
obj = dt &amp;lt;&amp;lt; Nonlinear(Y(:pop), X(:"X-formula"n), Finish());
Eval(EvalExpr(
	Report(obj)[FrameBox(1)] &amp;lt;&amp;lt; Add Graphics Script(
		p = Expr(Report(obj)[FrameBox(1)]);
		Pen Color("Red");
		f1 = (p &amp;lt;&amp;lt; Find Seg(Top Seg(1))) &amp;lt;&amp;lt; get script;
		f2 = Arg(f1);
		If(Head Name(f2) == "Y Function",
			Eval(f2);
		);
	);	
));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2024 11:16:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-color-of-fitted-line-in-Nonlinear/m-p/805066#M98305</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-11T11:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change color of fitted line in Nonlinear</title>
      <link>https://community.jmp.com/t5/Discussions/Change-color-of-fitted-line-in-Nonlinear/m-p/806914#M98551</link>
      <description>&lt;P&gt;wonderful hack!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can somebody mark it as a solution?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 16:21:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-color-of-fitted-line-in-Nonlinear/m-p/806914#M98551</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-10-18T16:21:42Z</dc:date>
    </item>
  </channel>
</rss>

