<?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: Reset zoom? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626185#M82498</link>
    <description>&lt;P&gt;I would contact support and ask if type should revert when using Revert Scale (without altering other customizations isn't exactly clear&lt;EM&gt;)&amp;nbsp;&lt;/EM&gt;and if they have good suggestions for your task. You could check the scale type and reset it after reverting.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 09:10:03 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-04-26T09:10:03Z</dc:date>
    <item>
      <title>Reset zoom?</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/625853#M82454</link>
      <description>&lt;P&gt;Is there a shortcut to reset a plot to "all data points in view"?&lt;BR /&gt;&lt;BR /&gt;Up to now I used a double-click with the magnifier tool - but now I realized that this just resets the zoom to "the original state" *) before zooming.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;*)&lt;BR /&gt;if no special setting was applied before: the "original state" it's the same as my desired "all data points in view", like here :&lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/zoom-out-in-graph-builder/m-p/327422/highlight/true#M57672" target="_blank" rel="noopener"&gt;https://community.jmp.com/t5/Discussions/zoom-out-in-graph-builder/m-p/327422/highlight/true#M57672&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, let's assume that before zooming with the magnifier the user first adjusted the axes range manually by dragging the axes.&lt;BR /&gt;Then the plot doesn't show all points in&amp;nbsp;"the original state"&lt;BR /&gt;...&amp;nbsp; and therefore, won't show them after "resetting".&lt;BR /&gt;&lt;BR /&gt;Like in this example:&lt;BR /&gt;after double-clicking the zoom jump back to the state X&amp;gt;66 - just before the magnifier was used to zoom in.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-04-25_18-02-29.gif" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52322i1ECA4B49AE5B307D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2023-04-25_18-02-29.gif" alt="2023-04-25_18-02-29.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Workarounds to get rid of the saved intermediate state:&lt;BR /&gt;&lt;BR /&gt;- toggle on/off "lock scale" *) from the red triangle context menu.&lt;BR /&gt;- save the script to script window and remove the block with the axis settings, then run it.&lt;BR /&gt;&lt;BR /&gt;The disadvantages of both methods:&lt;BR /&gt;- any additional settings like "log" scale are removed as well.&lt;/P&gt;&lt;P&gt;- they are slightly too long, i.e. interrupt "the flow"&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:31:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/625853#M82454</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-11T11:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reset zoom?</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/625961#M82464</link>
      <description>&lt;P&gt;*) I wondered&lt;BR /&gt;&lt;EM&gt;what's the difference between locking scales via dragging the axis / zooming with the magnifier tool ...&amp;nbsp;&lt;SPAN&gt;and via the "lock scale" setting.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;or in other words:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If I lock the scales via dragging one of the axes - why is there no check mark at lock scales - the scales are locked, right?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But &lt;STRONG&gt;lock scales&lt;/STRONG&gt; &lt;A href="https://community.jmp.com/t5/JMP-Wish-List/Axis-vs-legend-lock-scale/idc-p/625835#M4205" target="_self"&gt;also locks the color gradient (&lt;/A&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/39919"&gt;@StarfruitBob&lt;/a&gt;)&lt;BR /&gt;... dragging an axis or zooming with the magnifier just locks the x and y scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I guess there is no variant which also&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/How-to-lock-the-scales-in-graph-builder/td-p/34667" target="_self"&gt;locks the Group By settings&amp;nbsp;&lt;/A&gt;, (&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/7511"&gt;@vishwasanj&lt;/a&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 16:25:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/625961#M82464</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-04-25T16:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reset zoom?</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626004#M82468</link>
      <description>&lt;P&gt;Try this code:&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/Big Class.jmp" );
New Window( "",
	H List Box(
		Button Box( "Reset Zoom",
			Report( gb )[axis box( 2 )] &amp;lt;&amp;lt; Revert Axis;
			Report( gb )[axis box( 1 )] &amp;lt;&amp;lt; Revert Axis;, 
												
			&amp;lt;&amp;lt;SetIcon( "Refresh" ),
			&amp;lt;&amp;lt;setIconlocation( "left" ),
			&amp;lt;&amp;lt;setTip( "Reset Axis" )																			
		), 
		gb = dt &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :height ), FitLine )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Apr 2023 17:10:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626004#M82468</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-04-25T17:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reset zoom?</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626140#M82490</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17878"&gt;@Jackie_&lt;/a&gt;&amp;nbsp;, really nice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A disadvantage of &lt;STRONG&gt;Revert Axis&lt;/STRONG&gt;:&lt;BR /&gt;it removes all axis settings: log scale, grid lines, reference lines etc ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a functionality &lt;STRONG&gt;revert Range&amp;nbsp;&lt;/STRONG&gt;which just removes the min/max settings?&lt;/P&gt;&lt;P&gt;Unfortunately,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Report( gb )[axis box( 2 )] &amp;lt;&amp;lt; min(.)&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;max(.)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;doesn't have an effect. How can I make it work?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 05:07:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626140#M82490</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-04-26T05:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reset zoom?</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626141#M82491</link>
      <description>&lt;P&gt;Does &amp;lt;&amp;lt; Revert Scale work?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Restore the scale of the axis without altering other customizations&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 05:36:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626141#M82491</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-04-26T05:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reset zoom?</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626142#M82492</link>
      <description>&lt;P&gt;indeed!&lt;BR /&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 06:21:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626142#M82492</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-04-26T06:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reset zoom?</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626156#M82494</link>
      <description>&lt;P&gt;And something like this could be used to script it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = Graph Builder(Variables(X(:height), Y(:weight)), Elements(Points(X, Y), Smoother(X, Y)));
rep = Report(gb);
rep[AxisBox(1)] &amp;lt;&amp;lt; Min(70) &amp;lt;&amp;lt; Max(75);
rep[AxisBox(2)] &amp;lt;&amp;lt; Min(70) &amp;lt;&amp;lt; Max(75);


wait(1);
// window_ob = (Current Window()[OutlineBox(1)]);
window_ob = (Window("Big Class - Graph Builder")[OutlineBox(1)]);

// if we only care about Graph Builder
If(N Items(window_ob &amp;lt;&amp;lt; XPath("//OutlineBox[@helpKey='Graph Builder']")) == 0,
	stop(); // most likely not graph builder
	// we could of course expand this tool bar to all axisboxes
);

owner_box = Report(window_ob &amp;lt;&amp;lt; Get Scriptable Object());
axisboxes = (owner_box &amp;lt;&amp;lt; XPath("//AxisBox"));
If(N Items(axisboxes) &amp;gt; 0,
	axisboxes &amp;lt;&amp;lt; Revert Scale;
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And if it is used as toolbar/shortcut, adding more error-handling might be a good idea&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 07:42:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626156#M82494</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-04-26T07:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reset zoom?</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626178#M82497</link>
      <description>&lt;P&gt;Ouch, I just noticed that &lt;STRONG&gt;Revert Scale&lt;/STRONG&gt;&amp;nbsp;does a bit more than just resetting the range.&lt;/P&gt;&lt;P&gt;esp: it removes the&amp;nbsp;&lt;STRONG&gt;log scale&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was the actual use case that my colleague had in mind when he asked for a solution:&lt;/P&gt;&lt;P&gt;How to reset the range, but keep the log setting.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 08:59:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626178#M82497</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-04-26T08:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reset zoom?</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626185#M82498</link>
      <description>&lt;P&gt;I would contact support and ask if type should revert when using Revert Scale (without altering other customizations isn't exactly clear&lt;EM&gt;)&amp;nbsp;&lt;/EM&gt;and if they have good suggestions for your task. You could check the scale type and reset it after reverting.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 09:10:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626185#M82498</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-04-26T09:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Reset zoom?</title>
      <link>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626333#M82514</link>
      <description>&lt;P&gt;Nice trick from Jmp Support:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/775"&gt;@laura_archer&lt;/a&gt;&amp;nbsp;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... set the axis type as a column property.&amp;nbsp; You can do this by right clicking on the column and choosing &lt;STRONG&gt;Column Properties -&amp;gt; Axis&lt;/STRONG&gt;.&amp;nbsp; Using this property will have two effects.&amp;nbsp; The first is that the default plot will take the axis settings defined in the column property.&amp;nbsp; The other is that if the axis are changed, when we revert scale or revert axis it will return to the conditions that are defined in the column property.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only difficulty is to change the scale to log - without triggering any additional changes which are then saved as well :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1682520605290.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52370iAC8833171451B617/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1682520605290.png" alt="hogi_0-1682520605290.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A workaround: JSL&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Set Property("Axis",{ Scale( "Log" )})&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 17:39:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Reset-zoom/m-p/626333#M82514</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-04-26T17:39:39Z</dc:date>
    </item>
  </channel>
</rss>

