<?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: Can the width of the X-axis of the grouped graphics be set separately? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872136#M103614</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
d1=dt &amp;lt;&amp;lt; Summary(
	Group( :age, :sex ),
	Sum( :height ),
	statistics column name format( "column" )
);
New Column( "height M",	Formula( If( :sex == "M", :height ) ));
New Column( "height F",	Formula( If( :sex == "F", :height ) ));

p2=d1&amp;lt;&amp;lt; Graph Builder(
	Transform Column( "age_F", Nominal, Formula( If( :sex == "F", :age ) ) ),
	Transform Column( "age_M", Nominal, Formula( If( :sex == "M", :age ) ) ),
	Size( 433, 323 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables(
		X( :height F ),
		X( :height M ),
		Y( :age_M, Combine( "Merged" ) ),
		Y( :age_F, Position( 1 ), Combine( "Merged" ) ),
		Color( :N Rows )
	),
	Relative Sizes( "X", [360 237] ),
	Elements( Position( 1, 1 ), Bar( X, Y( 2 )) ),
	Elements( Position( 2, 1 ), Bar( X, Y( 1 ) ) ),
	SendToReport(
		Dispatch( {}, {:height F}, ScaleBox, {Max( 800 ), Inc( 100 ), Minor Ticks( 0 )} )
));

rpt = p2 &amp;lt;&amp;lt; Report;
frames = rpt &amp;lt;&amp;lt; XPath( "//FrameBox" );
For( i = 1, i &amp;lt;= N Items( frames ), i++,
	frames[i] &amp;lt;&amp;lt; Set Graphlet(
		Picture(
			try(Close(d2,nosave));
			current data table(dt);
			d2=dt&amp;lt;&amp;lt;Subset(Output Table("B00"),Selected Rows(0),Rows(dt&amp;lt;&amp;lt;Get Selected Rows()),Selected columns only(0));
		),
		Reapply(1)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 07 May 2025 04:42:34 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2025-05-07T04:42:34Z</dc:date>
    <item>
      <title>Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871238#M103486</link>
      <description>&lt;P&gt;For example, after I draw the graph like this, the widths of these two x-axes are set to be different.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt=Open("$SAMPLE_DATA/Big Class.jmp");
d2=dt&amp;lt;&amp;lt;Summary(Group(2,3),sum(4),Freq("0"),Weight("0"),Link to original data table(0),statistics column name format("column"));
Column(d2,3)&amp;lt;&amp;lt;set name("S");
d1=dt&amp;lt;&amp;lt;Summary(Group(3),Freq("0"),Weight("0"),Link to original data table(0),statistics column name format("column"));
d2&amp;lt;&amp;lt;Update(With(d1),Match Columns(sex=sex));Close(d1,nosave);
p1=d2&amp;lt;&amp;lt; Graph Builder(
	Size(480, 495),
	Variables(X(:height), Y(:age), Group X(:sex), Color(:S)),
	Elements(Bar(X, Y, Legend(4)))
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-05-01_11-07-14.png" style="width: 729px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75382i47576C683FBC176C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-05-01_11-07-14.png" alt="2025-05-01_11-07-14.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 03:16:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871238#M103486</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-05-01T03:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871324#M103493</link>
      <description>&lt;P&gt;you can split the height column in two parts:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1746093876569.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75393iFFB632E20922E287/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1746093876569.png" alt="hogi_0-1746093876569.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;... and generate 2 adjacent plots:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Summary(
	Group( :age, :sex ),
	Sum( :height ),
	statistics column name format( "column" )
);
New Column( "height M",	Formula( If( :sex == "M", :height ) ));
New Column( "height F",	Formula( If( :sex == "F", :height ) ));
Graph Builder(
	Show Control Panel( 0 ),
	Variables( X( :height F ), X( :height M ), Y( :age ), Color( :N Rows ) ),
	Relative Sizes( "X", [360 237] ),
	Elements( Position( 1, 1 ), Bar( X, Y ) ),
	Elements( Position( 2, 1 ), Bar( X, Y ) ),
	SendToReport(
		Dispatch( {}, {:height F}, ScaleBox, {Max( 800 )} )
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;unfortunately, the color in the plot is unexpected: same color for both sexes ?!&lt;BR /&gt;seems that color is taken from rows without values in the column which is used for the response axis.&lt;BR /&gt;-&amp;gt; interesting / important finding!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1746094027016.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75394iAC109B7CD761C05F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1746094027016.png" alt="hogi_1-1746094027016.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2025 15:05:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871324#M103493</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-05-02T15:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871325#M103494</link>
      <description>&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 10:19:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871325#M103494</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-05-01T10:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871327#M103495</link>
      <description>&lt;P&gt;So, in addition, either split color or the age axis:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1746097026655.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75395iC63DF741AC2392DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1746097026655.png" alt="hogi_2-1746097026655.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Transform Column( "age_F", Nominal, Formula( If( :sex == "F", :age ) ) ),
	Transform Column( "age_M", Nominal, Formula( If( :sex == "M", :age ) ) ),
	Size( 433, 323 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables(
		X( :height F ),
		X( :height M ),
		Y( :age_M, Combine( "Merged" ) ),
		Y( :age_F, Position( 1 ), Combine( "Merged" ) ),
		Color( :N Rows )
	),
	Relative Sizes( "X", [360 237] ),
	Elements( Position( 1, 1 ), Bar( X, Y( 2 )) ),
	Elements( Position( 2, 1 ), Bar( X, Y( 1 ) ) ),
	SendToReport(
		Dispatch( {}, {:height F}, ScaleBox, {Max( 800 ), Inc( 100 ), Minor Ticks( 0 )} )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With the ability to scale the x axes independently, you also get the "duty" to meaningful ranges (= same range) for the 2 color scales.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 10:59:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871327#M103495</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-05-01T10:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871329#M103496</link>
      <description>&lt;P&gt;A much better way: via &lt;STRONG&gt;page&lt;BR /&gt;&lt;/STRONG&gt;- independent x axes&lt;/P&gt;
&lt;P&gt;- synchronous y axis scale - via&amp;nbsp;&amp;nbsp;&lt;CODE class=" language-jsl"&gt;Link Page Axes( "Y Only" ),&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;- synchronous color scale&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;i hope you don't mind the small gap between the plots&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1746097455374.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75396i5074A1DDB5E1E133/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1746097455374.png" alt="hogi_0-1746097455374.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Size( 527, 455 ),
	Show Control Panel( 0 ),
	Link Page Axes( "Y Only" ),
	Replicate Linked Page Axes( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables( X( :height ), Y( :age ), Page( :sex, Levels per Row( 2 ) ), Color( :N Rows ) ),
	Elements( Bar( X, Y, Legend( 7 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 11:07:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871329#M103496</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-05-01T11:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871330#M103497</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This width is the same.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 11:19:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871330#M103497</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-05-01T11:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871331#M103498</link>
      <description>&lt;P&gt;Oh, yes, you are right. The &lt;STRONG&gt;Range &lt;/STRONG&gt;can be adjusted individually, but the &lt;EM&gt;width&lt;/EM&gt; is again forced to be the same.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Then I fear you need the lengthy code.&lt;BR /&gt;let's see what other users suggest ...&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 12:54:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/871331#M103498</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-05-01T12:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872109#M103608</link>
      <description>&lt;P&gt;Thanks Experts!&lt;BR /&gt;I'm using this script.&lt;BR /&gt;How can we obtain this subset by following the step of taking a screenshot, by hovering over the graphic or clicking on it?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-05-07_10-41-13.png" style="width: 884px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75543i3E4EA5DEC34EFE62/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-05-07_10-41-13.png" alt="2025-05-07_10-41-13.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Summary(
	Group( :age, :sex ),
	Sum( :height ),
	statistics column name format( "column" )
);
New Column( "height M",	Formula( If( :sex == "M", :height ) ));
New Column( "height F",	Formula( If( :sex == "F", :height ) ));

Graph Builder(
	Transform Column( "age_F", Nominal, Formula( If( :sex == "F", :age ) ) ),
	Transform Column( "age_M", Nominal, Formula( If( :sex == "M", :age ) ) ),
	Size( 433, 323 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables(
		X( :height F ),
		X( :height M ),
		Y( :age_M, Combine( "Merged" ) ),
		Y( :age_F, Position( 1 ), Combine( "Merged" ) ),
		Color( :N Rows )
	),
	Relative Sizes( "X", [360 237] ),
	Elements( Position( 1, 1 ), Bar( X, Y( 2 )) ),
	Elements( Position( 2, 1 ), Bar( X, Y( 1 ) ) ),
	SendToReport(
		Dispatch( {}, {:height F}, ScaleBox, {Max( 800 ), Inc( 100 ), Minor Ticks( 0 )} )
));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 May 2025 02:45:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872109#M103608</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-05-07T02:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872112#M103609</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I tried such code and could only succeed by clicking on the image "F" on the left.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
d1=dt &amp;lt;&amp;lt; Summary(
	Group( :age, :sex ),
	Sum( :height ),
	statistics column name format( "column" )
);
New Column( "height M",	Formula( If( :sex == "M", :height ) ));
New Column( "height F",	Formula( If( :sex == "F", :height ) ));

p2=d1&amp;lt;&amp;lt; Graph Builder(
	Transform Column( "age_F", Nominal, Formula( If( :sex == "F", :age ) ) ),
	Transform Column( "age_M", Nominal, Formula( If( :sex == "M", :age ) ) ),
	Size( 433, 323 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables(
		X( :height F ),
		X( :height M ),
		Y( :age_M, Combine( "Merged" ) ),
		Y( :age_F, Position( 1 ), Combine( "Merged" ) ),
		Color( :N Rows )
	),
	Relative Sizes( "X", [360 237] ),
	Elements( Position( 1, 1 ), Bar( X, Y( 2 )) ),
	Elements( Position( 2, 1 ), Bar( X, Y( 1 ) ) ),
	SendToReport(
		Dispatch( {}, {:height F}, ScaleBox, {Max( 800 ), Inc( 100 ), Minor Ticks( 0 )} )
));
frame=(p2&amp;lt;&amp;lt;report)[FrameBox(1)];frame&amp;lt;&amp;lt;Set Graphlet(Picture( current data table(dt);d2=dt&amp;lt;&amp;lt;Subset(Output Table("B00"),Selected Rows(0),Rows(dt&amp;lt;&amp;lt;Get Selected Rows()),Selected columns only(0));  ),Reapply(1));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-05-07_10-58-54.png" style="width: 580px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75545i98906BC556EE670B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-05-07_10-58-54.png" alt="2025-05-07_10-58-54.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 02:59:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872112#M103609</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-05-07T02:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872114#M103610</link>
      <description>&lt;P&gt;you applied the hover label script just to the first &lt;FONT face="courier new,courier"&gt;Framebox&lt;/FONT&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;frame=(p2&amp;lt;&amp;lt;report)[FrameBox(1)];frame&amp;lt;&amp;lt;Set Graphlet(&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;when you want the same function in all (2) &lt;FONT face="courier new,courier"&gt;Frameboxes&lt;/FONT&gt;, use &lt;FONT face="courier new,courier"&gt;xpath&lt;/FONT&gt; to get a list of the &lt;FONT face="courier new,courier"&gt;Frameboxes&lt;/FONT&gt; and send the message to the list:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;fbs = gb &amp;lt;&amp;lt; xpath("//FrameBox");
fbs &amp;lt;&amp;lt; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;maybe use a Modifier Key to make the creation of the subset less spontaneous : )&lt;BR /&gt;&lt;LI-MESSAGE title="actions via mouseover ? - use a modifier Key 👉🔳" uid="780054" url="https://community.jmp.com/t5/Discussions/actions-via-mouseover-use-a-modifier-Key/m-p/780054#U780054" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 03:40:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872114#M103610</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-05-07T03:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872119#M103611</link>
      <description>&lt;P&gt;After thinking again:&lt;BR /&gt;I don't recommend to create a graph like this - very dangerous.&lt;BR /&gt;I had to use &lt;STRONG&gt;Merged&lt;/STRONG&gt; to zip the labels on the Y axis. Why?&lt;BR /&gt;JMP doesn't allow a user to disable "variables" when they are &lt;EM&gt;nested :&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1746590682221.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75553i674121A84D903098/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1746590682221.png" alt="hogi_0-1746590682221.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Without the &lt;STRONG&gt;Merged&lt;/STRONG&gt; option, the plot would look like this - Female and Male ages nested:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1746587902895.png" style="width: 194px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75548i772436FF690B7467/image-dimensions/194x343?v=v2" width="194" height="343" role="button" title="hogi_2-1746587902895.png" alt="hogi_2-1746587902895.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;On the other hand:&lt;BR /&gt;a)&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Merged&lt;/STRONG&gt; leads to the wrong labels on the Y axis: 1,2,3... instead of 12,13,14 ... &lt;BR /&gt;&lt;BR /&gt;b) It's systematic, but dangerous:&lt;BR /&gt;To see the issue, just generate the plot with one missing entry (e.g. NO female, 15 years):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1746587980573.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75550iBDE3E750EF2ECCC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1746587980573.png" alt="hogi_4-1746587980573.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As "Merge" replaces the labels with 1, 2, 3 ... this makes the bars for Female shift and misaligns them to the male bars (!)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the topic is interesting, it illustrates how JMP handles data with missing entries.&lt;BR /&gt;By the way - on my system, the default setting is&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1746587546485.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75546iA1989D480DEB33E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1746587546485.png" alt="hogi_0-1746587546485.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So, If your graph is empty:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_5-1746588298468.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75551iE2725DCDBC56D59B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_5-1746588298468.png" alt="hogi_5-1746588298468.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;go to the red-triangle-menu and activate the option.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 04:08:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872119#M103611</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-05-07T04:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872121#M103612</link>
      <description>&lt;P&gt;with the two options:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;in addition, either split color or the age axis:&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;better forget the second one - and use the first one:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_6-1746590097900.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/75552iD3CD254A9EFA53B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_6-1746590097900.png" alt="hogi_6-1746590097900.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Transform Column( "N_M", Formula( If( :sex == "M", :N Rows ) ) ),
	Transform Column( "N_F", Formula( If( :sex == "F", :N Rows ) ) ),
	Variables( X( :height F ), X( :height M ), Y( :age ), Color( :N_F ), Color( :N_M ) ),
	Relative Sizes( "X", [360 237] ),
	Elements( Position( 1, 1 ), Bar( X, Y, Color( 1 ), Legend( 1 ) ) ),
	Elements( Position( 2, 1 ), Bar( X, Y, Color( 2 ), Legend( 2 ) ) ),
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 May 2025 03:55:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872121#M103612</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-05-07T03:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872136#M103614</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
d1=dt &amp;lt;&amp;lt; Summary(
	Group( :age, :sex ),
	Sum( :height ),
	statistics column name format( "column" )
);
New Column( "height M",	Formula( If( :sex == "M", :height ) ));
New Column( "height F",	Formula( If( :sex == "F", :height ) ));

p2=d1&amp;lt;&amp;lt; Graph Builder(
	Transform Column( "age_F", Nominal, Formula( If( :sex == "F", :age ) ) ),
	Transform Column( "age_M", Nominal, Formula( If( :sex == "M", :age ) ) ),
	Size( 433, 323 ),
	Show Control Panel( 0 ),
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables(
		X( :height F ),
		X( :height M ),
		Y( :age_M, Combine( "Merged" ) ),
		Y( :age_F, Position( 1 ), Combine( "Merged" ) ),
		Color( :N Rows )
	),
	Relative Sizes( "X", [360 237] ),
	Elements( Position( 1, 1 ), Bar( X, Y( 2 )) ),
	Elements( Position( 2, 1 ), Bar( X, Y( 1 ) ) ),
	SendToReport(
		Dispatch( {}, {:height F}, ScaleBox, {Max( 800 ), Inc( 100 ), Minor Ticks( 0 )} )
));

rpt = p2 &amp;lt;&amp;lt; Report;
frames = rpt &amp;lt;&amp;lt; XPath( "//FrameBox" );
For( i = 1, i &amp;lt;= N Items( frames ), i++,
	frames[i] &amp;lt;&amp;lt; Set Graphlet(
		Picture(
			try(Close(d2,nosave));
			current data table(dt);
			d2=dt&amp;lt;&amp;lt;Subset(Output Table("B00"),Selected Rows(0),Rows(dt&amp;lt;&amp;lt;Get Selected Rows()),Selected columns only(0));
		),
		Reapply(1)
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 May 2025 04:42:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872136#M103614</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-05-07T04:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872147#M103615</link>
      <description>&lt;P&gt;you prefer the approach via age?&lt;BR /&gt;Then perhaps add a check that both subsets contain exactly the same age groups.&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 05:26:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872147#M103615</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-05-07T05:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872149#M103616</link>
      <description>&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="0-0"&gt;This is given by AI. It can run, but I still don't know how to get the position of the column number of the graphic I clicked.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="_tgt transPara grammarSection"&gt;&lt;SPAN class="transSent" data-group="1-0"&gt;Could you please give me a code, expert?&lt;/SPAN&gt;&lt;SPAN class="transSent" data-group="1-1"&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 05:51:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872149#M103616</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2025-05-07T05:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can the width of the X-axis of the grouped graphics be set separately?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872346#M103633</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Caption(Char(dt&amp;lt;&amp;lt;Get Selected Rows()))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 May 2025 20:55:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-the-width-of-the-X-axis-of-the-grouped-graphics-be-set/m-p/872346#M103633</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-05-07T20:55:56Z</dc:date>
    </item>
  </channel>
</rss>

