<?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: Graph Builder: change width line of Parallel Plot when there is a Color variable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-change-width-line-of-Parallel-Plot-when-there-is-a/m-p/374625#M62439</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/182"&gt;@ms&lt;/a&gt; and &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt; for your answers!&lt;/P&gt;&lt;P&gt;My objective is indeed to change the line width of the graph and not only of the legend.&lt;/P&gt;&lt;P&gt;I pick the solution of &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/182"&gt;@ms&lt;/a&gt; since it is a bit shorter but both work like a charm! :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 13:45:34 GMT</pubDate>
    <dc:creator>anne_sa</dc:creator>
    <dc:date>2021-04-06T13:45:34Z</dc:date>
    <item>
      <title>Graph Builder: change width line of Parallel Plot when there is a Color variable</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-change-width-line-of-Parallel-Plot-when-there-is-a/m-p/373864#M62351</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do a Parallel Plot and I use a variable to color the lines. For example I use the following script with Big Class table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obj = Graph Builder(
	Size( 636, 660 ),
	Variables( X( :height ), X( :weight, Position( 1 ) ), Color( :age ) ),
	Elements( Parallel( X( 1 ), X( 2 ), Legend( 3 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then I would like to modify the width of the line. I tried to run this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;frame = Report( obj )[FrameBox(1 )];
seg = frame &amp;lt;&amp;lt; Find Seg( "Polyline Seg" );
seg &amp;lt;&amp;lt; Set Line Width(3);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but it modified only the lines associated with the first level of my Color variable (age in this example).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I modify all lines simultaneously? Should I use the Dispatch function when I create the graph? However I don't really know how to handle it, since I do not know in advance the number of levels of the Color variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:12:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-change-width-line-of-Parallel-Plot-when-there-is-a/m-p/373864#M62351</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2023-06-11T11:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: change width line of Parallel Plot when there is a Color variable</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-change-width-line-of-Parallel-Plot-when-there-is-a/m-p/374206#M62398</link>
      <description>&lt;P&gt;Not sure why your code does not work as intended for you. It works for me (JMP 15 for Mac).&lt;/P&gt;
&lt;P&gt;An alternative approach is to use Xpath.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(obj &amp;lt;&amp;lt; xpath( "//PolylineSeg" )) &amp;lt;&amp;lt; Set Line Width( 3 );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 22:48:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-change-width-line-of-Parallel-Plot-when-there-is-a/m-p/374206#M62398</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2021-04-03T22:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: change width line of Parallel Plot when there is a Color variable</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-change-width-line-of-Parallel-Plot-when-there-is-a/m-p/374227#M62401</link>
      <description>&lt;P&gt;Hi Ann,&lt;BR /&gt;Based on a couple of experiments I performed, I would like to first make sure that your problem is with the Legend on not the GB plot line themselves. If it is the case, I noticed that when you change the line width manually within the Customize menu, the legends are not updated correctly either. Hence, this seems to be a bug.&lt;BR /&gt;However, when you manually change the line width one by one in the Legend, both the curves and the Legend are updated.&lt;/P&gt;
&lt;P&gt;The corresponding code (for one Legend item lifted from the GB script) is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obj &amp;lt;&amp;lt; SendToReport( Dispatch( {}, "400", ScaleBox, {Legend Model (3, Properties (2, {Line Width (3)}, Itemd ID ("14", 1) ) )}));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So, to iterate through the Legend items (i.e. ages), I came up with the following "ugly" code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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 = current data table ();

dts = 	dt &amp;lt;&amp;lt; Summary(
			Group( :age ),
			Freq( "None" ),
			Weight( "None" ),
			invisible
		);
	

dlist = Column (dts, "age") &amp;lt;&amp;lt; get values;

Close (dts, NoSave);

show (dlist);

obj = dt &amp;lt;&amp;lt; Graph Builder(
			Size( 636, 660 ),
			Variables( X( :height ), X( :weight, Position( 1 ) ), Color( :age ) ),
			Elements( Parallel( X( 1 ), X( 2 ), Legend( 3 ) ) )
);
objr = obj &amp;lt;&amp;lt; report;
//frame = objr [FrameBox(1 )];                NO LONGER NEEDED
//seg = frame &amp;lt;&amp;lt; Find Seg( "Polyline Seg" );  NO LONGER NEEDED
//seg &amp;lt;&amp;lt; Set Line Width(6);                   NO LONGER NEEDED

For (i = 0, i &amp;lt; N Items (dlist), i++, 

	obj &amp;lt;&amp;lt; SendToReport( Dispatch( {}, "400", ScaleBox, {Legend Model (3, Properties (i, {Line Width (12)}, Itemd ID (dlist [i], 1) ) )}))

);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 05:12:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-change-width-line-of-Parallel-Plot-when-there-is-a/m-p/374227#M62401</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2021-04-04T05:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder: change width line of Parallel Plot when there is a Color variable</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-change-width-line-of-Parallel-Plot-when-there-is-a/m-p/374625#M62439</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/182"&gt;@ms&lt;/a&gt; and &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11634"&gt;@Thierry_S&lt;/a&gt; for your answers!&lt;/P&gt;&lt;P&gt;My objective is indeed to change the line width of the graph and not only of the legend.&lt;/P&gt;&lt;P&gt;I pick the solution of &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/182"&gt;@ms&lt;/a&gt; since it is a bit shorter but both work like a charm! :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 13:45:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-change-width-line-of-Parallel-Plot-when-there-is-a/m-p/374625#M62439</guid>
      <dc:creator>anne_sa</dc:creator>
      <dc:date>2021-04-06T13:45:34Z</dc:date>
    </item>
  </channel>
</rss>

