<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AZprevious</id>
	<title>TI-BASIC:Zprevious - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=TI-BASIC%3AZprevious"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Zprevious&amp;action=history"/>
	<updated>2026-04-29T18:36:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=TI-BASIC:Zprevious&amp;diff=871&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=TI-BASIC:Zprevious&amp;diff=871&amp;oldid=prev"/>
		<updated>2016-02-24T18:22:54Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:TI-BASIC:Command&lt;br /&gt;
|picture=Zprevious_example.gif&lt;br /&gt;
|summary=Restores the basic window settings as they were before the last zoom command.&lt;br /&gt;
|syntax=ZPrevious&lt;br /&gt;
|location=Press:&lt;br /&gt;
# ZOOM to access the zoom menu.&lt;br /&gt;
# RIGHT to access the MEMORY submenu.&lt;br /&gt;
# ENTER or 1 to select ZPrevious.&lt;br /&gt;
|compatibility=TI-83/84/+/SE&lt;br /&gt;
|size=1 byte&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The ZPrevious command (and menu option) restore the [[TI-BASIC:System_Variables#window|window variables]] Xmin, Xmax, Xscl, Ymin, Ymax, and Yscl to the values they had before the last [[TI-BASIC:Zoom|Zoom]] command. This means, of course, that using ZPrevious a second time will cancel its effects.&lt;br /&gt;
&lt;br /&gt;
Since no variables that are specific to the current graphing mode are changed, ZPrevious doesn&amp;#039;t always achieve the effect of reversing the previous zoom command. For example, in [[TI-BASIC:Polar_Mode|Polar]] graphing mode, [[TI-BASIC:Zstandard|ZStandard]] will set θmin and θmax to 0 and 2π respectively. However, even if they were different before ZStandard, ZPrevious will not restore these settings. Also, ZPrevious doesn&amp;#039;t notice if you change the window settings directly (by storing to the window variables).&lt;br /&gt;
&lt;br /&gt;
Unlike [[TI-BASIC:Zoomsto|ZoomSto]] and [[TI-BASIC:Zoomrcl|ZoomRcl]], the values that ZPrevious uses aren&amp;#039;t made available in any sort of variable.&lt;br /&gt;
&lt;br /&gt;
= Optimization =&lt;br /&gt;
&lt;br /&gt;
Using [[TI-BASIC:Storegdb|StoreGDB]] and [[TI-BASIC:Recallgdb|RecallGDB]] is an excellent way to back up graph settings so a program doesn&amp;#039;t modify them. However, if all you&amp;#039;re doing is changing the window variables with one Zoom command, you can simply use ZPrevious at the end of the program instead.&lt;br /&gt;
&lt;br /&gt;
= Error Conditions =&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[TI-BASIC:Errors#invalid|ERR:INVALID]]&amp;#039;&amp;#039;&amp;#039; occurs if this command is used outside a program (but not if the menu option is used, of course).&lt;br /&gt;
&lt;br /&gt;
= Related Commands =&lt;br /&gt;
&lt;br /&gt;
* [[TI-BASIC:Zoomsto|ZoomSto]]&lt;br /&gt;
* [[TI-BASIC:Zoomrcl|ZoomRcl]][[Category:TI-BASIC]]&lt;br /&gt;
[[Category:TIBD]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>