<?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: Hide graph axes and add x axis min/max values to the graph title in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462730#M70749</link>
    <description>&lt;P&gt;thank you so much Jim!&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 17:31:43 GMT</pubDate>
    <dc:creator>Raybob</dc:creator>
    <dc:date>2022-02-21T17:31:43Z</dc:date>
    <item>
      <title>Hide graph axes and add x axis min/max values to the graph title</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462438#M70720</link>
      <description>&lt;P&gt;I have graphs plotted, and I would like to have a table script that I can use to remove the axes, and send the x-axis values of the graph to the graph title before it is saved as a PPT. I do not want to hide the axes in the graphs until after I have had a chance to manually re-scale them(too much variation in the data to use set values), so I can use them later as inset graphs for presentations. Is this feasible?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:21:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462438#M70720</guid>
      <dc:creator>Raybob</dc:creator>
      <dc:date>2023-06-11T11:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hide graph axes and add x axis min/max values to the graph title</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462457#M70721</link>
      <description>&lt;P&gt;Here are the 2 pieces of code that will remove the axes and then the code to redisplay the axes&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
obj = Current Report();
(obj &amp;lt;&amp;lt; xpath( "//AxisBox" )) &amp;lt;&amp;lt; visibility( "collapse" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
obj = Current Report();
(obj &amp;lt;&amp;lt; xpath( "//AxisBox" )) &amp;lt;&amp;lt; visibility( "visible" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Feb 2022 01:00:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462457#M70721</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-02-20T01:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hide graph axes and add x axis min/max values to the graph title</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462481#M70727</link>
      <description>&lt;P&gt;In addition to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;here is an example how this could work.&lt;/P&gt;
&lt;P&gt;Use of XPath is a little tricky, because it will address all items of that type, you need to look which specifically (or all) to change/evaluate.&lt;/P&gt;
&lt;P&gt;To get the x values (min max) my best idea was to evaluate the script. May be there is another option.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

obj = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 528, 454 ),
	Show Control Panel( 0 ),
	Graph Spacing( 5 ),
	Variables( X( :height ), Y( :weight ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);
obj &amp;lt;&amp;lt; bring window to front();
Wait( 1 );

// change the x-axis of the graph
obj &amp;lt;&amp;lt; SendToReport( Dispatch( {}, "height", ScaleBox, {Min( 60.50 ), Max( 65 ), Inc( 2 ), Minor Ticks( 0 )} ) );

Wait( 3 );

// get title of x-axis and show result in log
x_axis_text = (obj &amp;lt;&amp;lt; xpath( "//TextEditBox" ))[3] &amp;lt;&amp;lt; get text();
Show( x_axis_text );

// collapse x-axis
(obj &amp;lt;&amp;lt; xpath( "//AxisBox" ))[1] &amp;lt;&amp;lt; visibility( "collapse" );

// get script of Graph Builder to evaluate min and max values
script = obj &amp;lt;&amp;lt; get script();
min_txt = Regex( Char( Name Expr( script ) ), "Min\([0-9]+[.]*[0-9]*\)" );
max_txt = Regex( Char( Name Expr( script ) ), "Max\([0-9]+[.]*[0-9]*\)" );
Show( min_txt, Type( max_txt ) );

// set graph title accordingly
(obj &amp;lt;&amp;lt; xpath( "//TextEditBox" ))[1] &amp;lt;&amp;lt; set text( x_axis_text || " from " || min_txt || " to " || max_txt );

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 20 Feb 2022 10:34:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462481#M70727</guid>
      <dc:creator>Georg</dc:creator>
      <dc:date>2022-02-20T10:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hide graph axes and add x axis min/max values to the graph title</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462730#M70749</link>
      <description>&lt;P&gt;thank you so much Jim!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 17:31:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462730#M70749</guid>
      <dc:creator>Raybob</dc:creator>
      <dc:date>2022-02-21T17:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hide graph axes and add x axis min/max values to the graph title</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462731#M70750</link>
      <description>&lt;P&gt;Thank you very much Georg!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 17:32:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-graph-axes-and-add-x-axis-min-max-values-to-the-graph-title/m-p/462731#M70750</guid>
      <dc:creator>Raybob</dc:creator>
      <dc:date>2022-02-21T17:32:03Z</dc:date>
    </item>
  </channel>
</rss>

