<?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: How do I get a gradient background in graph builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-get-a-gradient-background-in-graph-builder/m-p/629784#M82790</link>
    <description>&lt;P&gt;Thanks Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently a bit more complex than excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 10:23:02 GMT</pubDate>
    <dc:creator>MarcP</dc:creator>
    <dc:date>2023-05-08T10:23:02Z</dc:date>
    <item>
      <title>How do I get a gradient background in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-a-gradient-background-in-graph-builder/m-p/626191#M82501</link>
      <description>&lt;P&gt;I want to create a scatter plot with 9 squares that looks like a McKinsey GE matrix, and plot data points in those squares. If the bottom left equals the lowest values and top right the highest value, I would like to have a gradient diagonal background, starting with red in the lower left corner and green in the top right with a yellow band in the middle (see attached jpg). In excel I can do this in a scatter plot. How do I create this background in graph builder?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:31:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-a-gradient-background-in-graph-builder/m-p/626191#M82501</guid>
      <dc:creator>MarcP</dc:creator>
      <dc:date>2023-06-11T11:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a gradient background in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-a-gradient-background-in-graph-builder/m-p/626266#M82506</link>
      <description>&lt;P&gt;I was able to add the gradient as a background image, and then overlayed data on top of it.&amp;nbsp; I am using the .jpg that you supplied.&amp;nbsp; You would need to create a separate image.&amp;nbsp; I believe that it could be build using a graph box() in JMP.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1682511472714.png" style="width: 640px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52369iE7C5EACA16F00EF1/image-dimensions/640x332?v=v2" width="640" height="332" role="button" title="txnelson_0-1682511472714.png" alt="txnelson_0-1682511472714.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the JSL&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table( "example",
	Add Rows( 7 ),
	New Column( "x",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [0.655, 0.655, 0.655, 1.69, 1.69, 2.715, 2.715] ),
		Set Display Width( 38 )
	),
	New Column( "y",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [9.65, 5.6, 1.52, 5.6, 1.52, 5.6, 1.52] ),
		Set Display Width( 72 )
	),
	New Column( "size",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [20, 20, 20, 20, 20, 20, 20] )
	),
	Set Row States( [8192, 8384, 8384, 8384, 8384, 8384, 8384] )
);

op = Graph Builder(
	Size( 1120, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :x ), Y( :y ), Size( :size ) ),
	Elements( Points( X, Y, Legend( 7 ) ) ),
	SendToReport(
		Dispatch( {}, "x", ScaleBox, {Min( 0.15 ), Max( 3.2 ), Inc( 0.5 ), Minor Ticks( 1 )} ),
		Dispatch(
			{},
			"y",
			ScaleBox,
			{Min( -0.635918367346939 ), Max( 11.6721345272803 ), Inc( 2 ), Minor Ticks( 1 )}
		),
		Dispatch( {}, "400", LegendBox, {Legend Position( {7, [-1, -1]} )} )
	)
);
opr1 = op &amp;lt;&amp;lt; report;
opr2 = opr1 &amp;lt;&amp;lt; Clone Box;
opr1 &amp;lt;&amp;lt; append( opr2 );
fb1 = opr1[Frame Box( 1 )];
fb1 &amp;lt;&amp;lt; Add Image(
	Open( Convert File Path( "&amp;lt;path to the image&amp;gt;.jpg" ) ),
	Transparency( 0.9 ),
	Bounds(
		Left( 0.135416666666667 ),
		Right( 3.26041666666667 ),
		Top( 11.8333333333333 ),
		Bottom( -1 )
	),
	SetSize( {300, 210} )
);
fb1 &amp;lt;&amp;lt; Copy Picture;
fb2 = opr2[Frame Box( 1 )];
fb2 &amp;lt;&amp;lt; Paste Background Image;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Apr 2023 12:19:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-a-gradient-background-in-graph-builder/m-p/626266#M82506</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-04-26T12:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a gradient background in graph builder</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-a-gradient-background-in-graph-builder/m-p/629784#M82790</link>
      <description>&lt;P&gt;Thanks Jim,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently a bit more complex than excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 10:23:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-a-gradient-background-in-graph-builder/m-p/629784#M82790</guid>
      <dc:creator>MarcP</dc:creator>
      <dc:date>2023-05-08T10:23:02Z</dc:date>
    </item>
  </channel>
</rss>

