<?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 Change graph background colour between reference lines in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Change-graph-background-colour-between-reference-lines/m-p/548023#M76498</link>
    <description>&lt;P&gt;Hi, I have a scatter plot with a line of best fit to which I've added 2 reference lines to the x-axis.&lt;/P&gt;&lt;P&gt;Is there an easy way of changing the background of the area between both reference lines to light-grey.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:27:53 GMT</pubDate>
    <dc:creator>Agustin</dc:creator>
    <dc:date>2023-06-11T11:27:53Z</dc:date>
    <item>
      <title>Change graph background colour between reference lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-graph-background-colour-between-reference-lines/m-p/548023#M76498</link>
      <description>&lt;P&gt;Hi, I have a scatter plot with a line of best fit to which I've added 2 reference lines to the x-axis.&lt;/P&gt;&lt;P&gt;Is there an easy way of changing the background of the area between both reference lines to light-grey.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:27:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-graph-background-colour-between-reference-lines/m-p/548023#M76498</guid>
      <dc:creator>Agustin</dc:creator>
      <dc:date>2023-06-11T11:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change graph background colour between reference lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-graph-background-colour-between-reference-lines/m-p/548035#M76500</link>
      <description>&lt;P&gt;One option is to use some scripting and add graphic script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(:weight), Y(:height)),
	Elements(Points(X, Y, Legend(3))),
	SendToReport(
		Dispatch(
			{},
			"height",
			ScaleBox,
			{Add Ref Line(65, "Solid", "Black", "", 1),
			Add Ref Line(55, "Solid", "Black", "", 1)}
		)
	)
);

rep = gb &amp;lt;&amp;lt; report;
framebox = rep[frame box(1)];
framebox &amp;lt;&amp;lt; Add Graphics Script(
	Transparency(0.5);
	Fill Color("Gray");
	Rect(X Origin(), 65, X Origin() + X Range(), 55, 1)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Sep 2022 11:09:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-graph-background-colour-between-reference-lines/m-p/548035#M76500</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-09-22T11:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change graph background colour between reference lines</title>
      <link>https://community.jmp.com/t5/Discussions/Change-graph-background-colour-between-reference-lines/m-p/548070#M76504</link>
      <description>&lt;P&gt;You can also use a reference region. The region is independent of the lines. You can use either one or both of them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :weight ), Y( :height) ),
	Elements( Points( X, Y, Legend( 3 ) ) )
);

rpt = gb &amp;lt;&amp;lt; Report;

rpt[AxisBox(2)]
	&amp;lt;&amp;lt; Add Ref Line( 55, "Solid", "Black", "", 1 )
	&amp;lt;&amp;lt; Add Ref Line( 65, "Solid", "Black", "", 1 )
	&amp;lt;&amp;lt; Add Ref Line( { 55, 65 }, "Solid", "Green", "", 1, 0.25 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Sep 2022 12:29:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Change-graph-background-colour-between-reference-lines/m-p/548070#M76504</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-09-22T12:29:38Z</dc:date>
    </item>
  </channel>
</rss>

