<?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: Draw a rectangle but X and Y are in the same column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772476#M95286</link>
    <description>&lt;P&gt;In your latest example of your data structure&lt;/P&gt;
&lt;P&gt;ID Parameter Value&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;X size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;Y size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp;X size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp;Y size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14&lt;/P&gt;
&lt;P&gt;I believe you are specifying the dimensions of the rectangles to be drawn.&amp;nbsp; Where are the data points to be drawn on the Graph Builder.&amp;nbsp; The rectangles can be added to Graph Builder using &amp;lt;&amp;lt;Add Graphics Script&amp;nbsp; methodology, and the data can come from your suggested data structure, but where in your data table are the data points?&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2024 10:16:53 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2024-07-11T10:16:53Z</dc:date>
    <item>
      <title>Draw a rectangle but X and Y are in the same column</title>
      <link>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772062#M95257</link>
      <description>&lt;P&gt;I need to draw some rectangles, similarly to what is shown in&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Rectangle-Graphic/m-p/432596#M68231" target="_self"&gt;this reply&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In my case i have data organized differently:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Parameter Value&lt;/P&gt;&lt;P&gt;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Y&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a simple way withouth splitting the row in X and Y columns?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 13:54:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772062#M95257</guid>
      <dc:creator>Zack94</dc:creator>
      <dc:date>2024-07-10T13:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a rectangle but X and Y are in the same column</title>
      <link>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772350#M95259</link>
      <description>&lt;P&gt;How are different coordinates mapped together (how do you know which X belongs to which Y)? How does your more full data look like (difficult to create a rectangle with just one? coordinate)? What type of rectangle do you need? Graph Builder? Graph Box?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Easiest way would most likely be splitting but there could be other methods (maybe some simple and some not simple)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 14:40:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772350#M95259</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-10T14:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a rectangle but X and Y are in the same column</title>
      <link>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772352#M95260</link>
      <description>&lt;P&gt;Essentially I have a table similar to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID Parameter Value&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp;X size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp;Y size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp;X size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp;Y size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And i want to superimpose graphically the two rectangles in order to compare the dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 14:53:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772352#M95260</guid>
      <dc:creator>Zack94</dc:creator>
      <dc:date>2024-07-10T14:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a rectangle but X and Y are in the same column</title>
      <link>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772354#M95261</link>
      <description>&lt;P&gt;Graph Box with Rect is one option if you just want to see the rectangles&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
nw = New Window("Example",
	gb = Graph Box(
		Frame Size(300, 300),
		Pen Size(1);
		Pen Color("Blue");
		Rect(0, 15, 10, 0);
		Pen Color("Green");
		Rect(0, 11, 14, 0);
	)
);
nw[AxisBox(1)] &amp;lt;&amp;lt; Min(-0.1) &amp;lt;&amp;lt; Max(15.1) &amp;lt;&amp;lt; Inc(1);
nw[AxisBox(2)] &amp;lt;&amp;lt; Min(-0.1) &amp;lt;&amp;lt; Max(1.1) &amp;lt;&amp;lt; Inc(1);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1720624128863.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66046i254012912D2B6ECE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1720624128863.png" alt="jthi_0-1720624128863.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 15:09:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772354#M95261</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-10T15:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a rectangle but X and Y are in the same column</title>
      <link>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772366#M95262</link>
      <description>&lt;P&gt;Here is a simple expansion on Jarmo's example.&amp;nbsp; I simply moved away from hardcoding the values, to using the data table values directly.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = New Table( "Example",
	Add Rows( 4 ),
	New Column( "ID", Character, "Nominal", Set Values( {"1", "1", "2", "2"} ) ),
	New Column( "Parameter",
		Character,
		"Nominal",
		Set Values( {"X size", "Y size", "X size", "Y size"} )
	),
	New Column( "Value",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [10, 15, 11, 14] )
	)
);

nw = New Window( "Example",
	gb = Graph Box(
		Frame Size( 300, 300 ),
		Pen Size( 1 );
		Pen Color( "Blue" );
		Rect( 0, dt:value[2], dt:value[1], 0 );
		Pen Color( "Green" );
		Rect( 0, dt:value[4], dt:value[3], 0 );
	)
);
nw[AxisBox( 1 )] &amp;lt;&amp;lt; Min( -0.1 ) &amp;lt;&amp;lt; Max( 15.1 ) &amp;lt;&amp;lt; Inc( 1 );
nw[AxisBox( 2 )] &amp;lt;&amp;lt; Min( -0.1 ) &amp;lt;&amp;lt; Max( 12.1 ) &amp;lt;&amp;lt; Inc( 1 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1720625578921.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/66047iC0D6CB3B9D12AEE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1720625578921.png" alt="txnelson_0-1720625578921.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 15:33:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772366#M95262</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-07-10T15:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a rectangle but X and Y are in the same column</title>
      <link>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772470#M95281</link>
      <description>&lt;P&gt;Thank you very much; I adapted the script to my table and it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do it via the graph build so that i can maybe add labels, filters, etc?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 07:42:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772470#M95281</guid>
      <dc:creator>Zack94</dc:creator>
      <dc:date>2024-07-11T07:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a rectangle but X and Y are in the same column</title>
      <link>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772471#M95282</link>
      <description>&lt;P&gt;It can be done in graph builder. How it could/should be done depends on how much are you willing to modify your data table (splitting, stacking, creating new columns, ...)?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 07:47:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772471#M95282</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-07-11T07:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a rectangle but X and Y are in the same column</title>
      <link>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772473#M95284</link>
      <description>&lt;P&gt;Ideally leaving the table as is. I know it can be done by changing the table, as shown in the thread I linked, but I was wondering if it can be done with this kind of table structure.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 08:23:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772473#M95284</guid>
      <dc:creator>Zack94</dc:creator>
      <dc:date>2024-07-11T08:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Draw a rectangle but X and Y are in the same column</title>
      <link>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772476#M95286</link>
      <description>&lt;P&gt;In your latest example of your data structure&lt;/P&gt;
&lt;P&gt;ID Parameter Value&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;X size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10&lt;/P&gt;
&lt;P&gt;1&amp;nbsp; &amp;nbsp;Y size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp;X size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11&lt;/P&gt;
&lt;P&gt;2&amp;nbsp; &amp;nbsp;Y size&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14&lt;/P&gt;
&lt;P&gt;I believe you are specifying the dimensions of the rectangles to be drawn.&amp;nbsp; Where are the data points to be drawn on the Graph Builder.&amp;nbsp; The rectangles can be added to Graph Builder using &amp;lt;&amp;lt;Add Graphics Script&amp;nbsp; methodology, and the data can come from your suggested data structure, but where in your data table are the data points?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 10:16:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Draw-a-rectangle-but-X-and-Y-are-in-the-same-column/m-p/772476#M95286</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-07-11T10:16:53Z</dc:date>
    </item>
  </channel>
</rss>

