<?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 can I change all X axes in a graph builder to log scale in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620147#M81931</link>
    <description>&lt;P&gt;One way to handle this, is to use Standardize Attributes to change the Axis Column Property.&lt;/P&gt;
&lt;P&gt;To change all of the axes to log:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to the data table, and select the columns you want change the axes for&lt;/LI&gt;
&lt;LI&gt;Select&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cols=&amp;gt;Standardize Attributes&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Select&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Column Properties=&amp;gt;Axis&lt;/LI&gt;
&lt;LI&gt;Click on&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Set Default Axis Settings&lt;/LI&gt;
&lt;LI&gt;Change the Scale from Linear to Log&lt;/LI&gt;
&lt;LI&gt;Click OK&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The axes for all of the X axes in the graph will be changed to a log scale&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 12:01:44 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2023-04-05T12:01:44Z</dc:date>
    <item>
      <title>How can I change all X axes in a graph builder to log scale</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620060#M81929</link>
      <description>&lt;P&gt;Double-clicking through the axes is a real headache.&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="JustinSuIntel_0-1680678886600.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51745i22E3F0F3062658C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JustinSuIntel_0-1680678886600.png" alt="JustinSuIntel_0-1680678886600.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 12:03:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620060#M81929</guid>
      <dc:creator>JustinSuIntel</dc:creator>
      <dc:date>2023-06-11T12:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change all X axes in a graph builder to log scale</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620147#M81931</link>
      <description>&lt;P&gt;One way to handle this, is to use Standardize Attributes to change the Axis Column Property.&lt;/P&gt;
&lt;P&gt;To change all of the axes to log:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to the data table, and select the columns you want change the axes for&lt;/LI&gt;
&lt;LI&gt;Select&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cols=&amp;gt;Standardize Attributes&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Select&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Column Properties=&amp;gt;Axis&lt;/LI&gt;
&lt;LI&gt;Click on&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Set Default Axis Settings&lt;/LI&gt;
&lt;LI&gt;Change the Scale from Linear to Log&lt;/LI&gt;
&lt;LI&gt;Click OK&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;The axes for all of the X axes in the graph will be changed to a log scale&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:01:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620147#M81931</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-04-05T12:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change all X axes in a graph builder to log scale</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620329#M81956</link>
      <description>&lt;P&gt;Thanks a lot for the suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, my use of Graph Builder is quite dynamic and often hard to predict what columns will be used for plotting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a script that I can use to convert the X axes already used by a Graph Builder figure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I know I can do that for scatterplot matrix with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;	For( i = 100, i &amp;lt; 200, i++,
		(Current Window() &amp;lt;&amp;lt; XPath( "//ScaleBox[@charID=" || Char( i ) || "]" )) &amp;lt;&amp;lt; Revert Axis
		 &amp;lt;&amp;lt; {Scale( "Log" ), Inc( 1 ), Minor Ticks( 1 )}
	)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 16:33:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620329#M81956</guid>
      <dc:creator>JustinSuIntel</dc:creator>
      <dc:date>2023-04-05T16:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change all X axes in a graph builder to log scale</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620364#M81959</link>
      <description>&lt;P&gt;You do not need to iterate. The list of display boxes will distribute the messages it receives to each of its items automatically, so you only need to make sure that the list is correct. For example:&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 = Open( "$SAMPLE_DATA/Fitness.jmp" );

sm = dt &amp;lt;&amp;lt; Scatterplot Matrix(
	Y( :Age, :Weight, :Oxy, :Runtime, :RunPulse, :RstPulse, :MaxPulse ),
	Matrix Format( "Lower Triangular" )
);
(Report( sm ) &amp;lt;&amp;lt; XPath( "//AxisBox" ))
	&amp;lt;&amp;lt; Revert Axis
	&amp;lt;&amp;lt; Scale( "Log" )
	&amp;lt;&amp;lt; Inc( 10 )
	&amp;lt;&amp;lt; Minor Ticks( 0 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Apr 2023 17:32:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620364#M81959</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-04-05T17:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change all X axes in a graph builder to log scale</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620633#M81981</link>
      <description>&lt;P&gt;My problem is that I want to keep y axes in linear scale but change x axes into log scale. Without iteration, I am afraid that both X/Y axes will be switched to log scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, does similar approach work for Graph Builder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 18:04:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620633#M81981</guid>
      <dc:creator>JustinSuIntel</dc:creator>
      <dc:date>2023-04-06T18:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change all X axes in a graph builder to log scale</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620654#M81984</link>
      <description>&lt;P&gt;This approach still works. Subscript the list first to get a new list with only the axis boxes you want to change, then send the messages to that target list. This way is still much easier and cleaner than explicit looping.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a modification to my first example to illustrate the new approach:&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 = Open( "$SAMPLE_DATA/Fitness.jmp" );

sm = dt &amp;lt;&amp;lt; Scatterplot Matrix(
	Y( :Age, :Weight, :Oxy, :Runtime, :RunPulse, :RstPulse, :MaxPulse ),
	Matrix Format( "Lower Triangular" )
);

// change X axes only in Scatterplot Matrix
axes = Report( sm ) &amp;lt;&amp;lt; XPath( "//AxisBox" );
nAxes = N Items( axes );

// second half of list only
axes[((nAxes/2)+1)::nAxes] &amp;lt;&amp;lt; Select; // Scale( "Log" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It doesn't work well with the Scatterplot Matrix, though, because all but one data column is used in the X and Y role, and internal logic tries to keep changes consistent in both places (X and Y role).&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 19:38:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/620654#M81984</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-04-06T19:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I change all X axes in a graph builder to log scale</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/622252#M82127</link>
      <description>&lt;P&gt;Since I can't find a way to identify X axes from Y axes, my current solution is using this command to set all axes to log scale and then manually reverting Y axes to linear scale, which is much easier than manual setting of log scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;( Current Window() &amp;lt;&amp;lt; XPath( "//AxisBox" ) ) &amp;lt;&amp;lt; Revert Axis &amp;lt;&amp;lt; {Scale( "Log" ), Inc( 1 ), Minor Ticks( 1 )}&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 17:13:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-change-all-X-axes-in-a-graph-builder-to-log-scale/m-p/622252#M82127</guid>
      <dc:creator>JustinSuIntel</dc:creator>
      <dc:date>2023-04-13T17:13:07Z</dc:date>
    </item>
  </channel>
</rss>

