Skip to content
Property Value
Hex Value $DF
Categories
Localizations
  • FR: AffGraph

DispGraph

Overview

Displays the graph.

Availability: Token only available from within the Basic editor.

Syntax

DispGraph

Location

prgm, I/O, 4:DispGraph


Description

The DispGraph command displays the graph screen, along with everything drawn or graphed on it.

In many cases, this doesn't need to be done explicitly: commands from the 2nd DRAW menu, as well as many other graph screen commands, will display the graph screen automatically when they are used. Mainly, it's used for displaying the graphs of equations or plots in a program — you would define the variable in question, then use DispGraph to graph it. For example:

:"sin(X)"→Y1
:DispGraph

Advanced Uses

DispGraph can also be used to update the graph screen, even if it's already being displayed. For example, changing the value of a plot or equation variable doesn't update the graph immediately. Consider this program:

:0→I
:"Isin(X)"→Y1
:DispGraph
:For(I,1,10)
:End

At first, it graphs the equation Y=Isin(X) with I=0. After this, I is cycled from 1 to 10. However, though the parameter I changes, the graph screen isn't updated, and only the initial graph of Y=0sin(X) and final graph of Y=10sin(X) are displayed. If, on the other hand, we change the program:

:0→I
:"Isin(X)"→Y1
:DispGraph
:For(I,1,10)
:DispGraph
:End

Now the DispGraph inside the loop ensures that the graph screen is updated every time, and the program will correctly display all eleven graphs.

Error Conditions

  • ERR:INVALID occurs if this statement is used outside a program.

Source: parts of this page were written by the following TI|BD contributors: burr, DarkerLine, GoVegan, kg583.

History

Calculator OS Version Description
TI-82 1.0 Added

Last update: September 30, 2023 15:38:51
Created: February 23, 2023 23:15:01
Authors: Adrien Bertrand