<?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: Rectangle Graphic in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432566#M68229</link>
    <description>&lt;P&gt;Also look at the transparency command if you have issues with which one is in front.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="both rectangles are drawn with 50% alpha" style="width: 481px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37230iFCBD4F026D6EACA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Transparency.PNG" alt="both rectangles are drawn with 50% alpha" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;both rectangles are drawn with 50% alpha&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 12:52:49 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2021-11-04T12:52:49Z</dc:date>
    <item>
      <title>Rectangle Graphic</title>
      <link>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432398#M68213</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;is there an easy way in JMP to generate a graph with different rectangles (different sizes)? See an example attached.&lt;/P&gt;&lt;P&gt;With this graph I would like to give an overview of different materials and their corresponding shapes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Johannes&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:18:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432398#M68213</guid>
      <dc:creator>JohannesENS</dc:creator>
      <dc:date>2023-06-11T11:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle Graphic</title>
      <link>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432421#M68214</link>
      <description>&lt;P&gt;&amp;nbsp;What sort of data do you have? You can for example &lt;A href="https://www.jmp.com/support/help/en/16.1/index.shtml#page/jmp/custom-map-files.shtml#ww499781" target="_blank" rel="noopener"&gt;create custom shape files&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 07:43:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432421#M68214</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-11-03T07:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle Graphic</title>
      <link>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432425#M68215</link>
      <description>&lt;P&gt;I attached a file with sample data. I do have coordinates for every corner of the rectangles.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 07:58:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432425#M68215</guid>
      <dc:creator>JohannesENS</dc:creator>
      <dc:date>2021-11-03T07:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle Graphic</title>
      <link>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432453#M68219</link>
      <description>&lt;P&gt;JMP has a complete set of graphic primitives' that can be used for creating things such as rectangles.&amp;nbsp; The Scripting Index details the functions available and gives examples of their use.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1635935989392.png" style="width: 565px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37222iE9E28CE84F6BCD6F/image-dimensions/565x448?v=v2" width="565" height="448" role="button" title="txnelson_0-1635935989392.png" alt="txnelson_0-1635935989392.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="txnelson_1-1635936060974.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37223iECD22A476CFE7CC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_1-1635936060974.png" alt="txnelson_1-1635936060974.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the script from the Rect() function description.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Example",
	Graph Box(
		Pen Color( "Green" );
		Pen Size( 2 );
		Fill Color( "Red" );
		Rect( 15, 75, 65, 55, 1 );
		Rect( 10, 80, 70, 50 );
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 10:42:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432453#M68219</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-11-03T10:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle Graphic</title>
      <link>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432479#M68223</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 11:59:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432479#M68223</guid>
      <dc:creator>JohannesENS</dc:creator>
      <dc:date>2021-11-03T11:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle Graphic</title>
      <link>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432566#M68229</link>
      <description>&lt;P&gt;Also look at the transparency command if you have issues with which one is in front.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="both rectangles are drawn with 50% alpha" style="width: 481px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37230iFCBD4F026D6EACA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Transparency.PNG" alt="both rectangles are drawn with 50% alpha" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;both rectangles are drawn with 50% alpha&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 12:52:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432566#M68229</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-11-04T12:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle Graphic</title>
      <link>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432567#M68230</link>
      <description>&lt;P&gt;Lots of overlap in your data.&amp;nbsp; This code will do it; I set the rectangles to unfilled to show the overlap.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = data table("Rectangles");

// Set some constants
xmin = 0;
xmax = 4000;
ymin = 0;
ymax = 1500;
xres = 800;
yres = 500;

color_list  = {"Red", "Blue", "Green", "Orange", "Purple"};
filled_rect = 0;	// set to 1 for filled rectangles

heat_map_win = New Window( "Example Rectangles ",
	rect_gb = Graph Box(
		framesize( xres, yres ),
		xscale(xmin, xmax),
		yscale(ymin, ymax),
		for (i = 1, i &amp;lt;= nrows(dt), i++,
			xleft   = dt:x 1[i];
			xright  = dt:x 3[i];
			ybottom = dt:y 1[i];
			ytop    = dt:y 4[i];
			pcolor  = color_list[dt:material[i]];
			pen color(pcolor);
			fill color(pcolor);
			rect(xleft, ytop, xright, ybottom, filled_rect);
		),
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pmroz_0-1635947154958.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37231i8D0F57817D43BBC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pmroz_0-1635947154958.png" alt="pmroz_0-1635947154958.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 13:46:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432567#M68230</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2021-11-03T13:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle Graphic</title>
      <link>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432596#M68231</link>
      <description>&lt;P&gt;I would definitely do this with Graph box but you can try to do something with Graph builder also. If I understood the data correctly you have couple of different versions per material. Based&amp;nbsp; on that I did some split/stack/formulas to get table like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1635948951890.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37237i6E61154A0EF7DD28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1635948951890.png" alt="jthi_1-1635948951890.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With this table I then created Graph builder and used smoother with confidence of fit ON.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1635948890277.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37236i44A99AE8E125F1EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1635948890277.png" alt="jthi_0-1635948890277.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two happened by accident and will work only because all rectangles have "line" in x = 0:&lt;/P&gt;&lt;P&gt;Bar chart + line char:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_4-1635949449463.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37240iB11363ACA2D7B86A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_4-1635949449463.png" alt="jthi_4-1635949449463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also using line with fill below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_3-1635949422438.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37239iE34FC2D68F065B99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_3-1635949422438.png" alt="jthi_3-1635949422438.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Datatable attached with tablescript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bonus image from same data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1635949405258.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37238i1DA5FED337A59E35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1635949405258.png" alt="jthi_2-1635949405258.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 14:26:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432596#M68231</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-11-03T14:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle Graphic</title>
      <link>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/808293#M98769</link>
      <description>&lt;P&gt;Thanks for the code. Working well for me.&lt;/P&gt;&lt;P&gt;Now I'd like to split the graphs by another key column. E.g. graph 1 will have the&amp;nbsp; rectangles for parameter A, graph 2 will have the&amp;nbsp; rectangles for parameter B, etc.&lt;/P&gt;&lt;P&gt;I'm struggling to use a Where or By clause here.&lt;/P&gt;&lt;P&gt;I would need to have all the graphs displayed vertically and save it as a jpg.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 14:17:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/808293#M98769</guid>
      <dc:creator>LargeElk892</dc:creator>
      <dc:date>2024-10-25T14:17:53Z</dc:date>
    </item>
  </channel>
</rss>

