Graph Settings
toolbar-separator.png This article is currently in development. You can help TI-Basic Developer by .

You already know the Graph Screen is 95 pixels wide and 63 pixels high. You may want to change these settings a little bit. The dimensions of the window will directly affect all your commands in the Draw menu except for the Pxl-On(, Pxl-Off( and the Text( commands.

Table of Contents

Window

You can change the size of the Graph Screen. This is very useful when dealing with Pt-On( or Pt-Off( because you need to have a window that contains the coordinate you're using in Pt-On( and Pt-Off(. If the user already has a screen set to ZStandard and you write Pt-On(30,45) it won't work.

So, you can change Xmin, Xmax, Ymin or Ymax. They can be found by pressing Vars then 1:Window

:#→Xmin:#→Xmax
:#→Ymin:#→Ymax

Or you can change the zoom: ZStandard , ZInteger. They can be found in the Zoom menu near the "Y=" key

:ZStandard

or
:ZInteger

Functions

You may want to turn off functions. The user may accidentally write Y=2X in his "Y=" window before using your program. To turn off all functions, simply use: FnOff (using the Vars menu, click right to go in Y-Vars then in 4:On/Off.)

To have them back on: FnOn
**When you turn the functions on, they'll draw in the screen so you may want to use this code wisely.

Axes

Another thing that may be annoying when you create a program and you use the Graph Screen is axes. You can turn them off by using AxesOff and AxesOn to have them back. These can be found by pressing 2nd function then Format

Resetting

When creating a program, you don't want the user to manually get back his settings. For this, you can simply but all back on at the end of the program.

With this you can have all these settings back. To use the ClrDraw, go in 2nd, Draw then 1:ClrDraw

:ZStandard:AxesOn:FnOn:ClrDraw

Example

You can also input these variables and let the user choose the size of the screen:

:Input "Left: ",Xmin
:Input "Right: ",Xmax
:Input "Bottom: ",Ymin
:Input "Top: ",Ymax
:Input "Axes On ?[y,n]",Str1
:If Str1="Y"
:AxesOn
:If Str1="N"
:AxesOff
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /