TI PlotLib Menu
Note: When creating a new program that uses this module, it is recommended to use the Plotting (x,y) & Text program type. This will ensure that all the relevant modules are imported.
Item |
Description |
---|---|
import ti_plotlib as plt |
Imports all methods (functions) from the ti_plotlib module in the "plt" namespace. As a result, all function names pasted from the menus will be preceded by "plt.". |
Setup
Item |
Description |
---|---|
cls() |
Clears the plotting canvas. |
grid(x-scale,y-scale,"style") |
Displays a grid using specified scale for x and y axes. |
window(xmin,xmax,ymin,ymax) |
Defines the plotting window by mapping the the specified horizontal interval (xmin, xmax) and vertical interval (ymin, ymax) to the allotted plotting area (pixels). |
auto_window(x-list,y-list) |
Autoscales the plotting window to fit the data ranges within x-list and y-list specified in the program prior to the auto_window(). |
axes("mode") |
Displays axes on specified window in the plotting area. |
labels("x-label","y-label",x,y) |
Displays "x-label" and "y-label" labels on the plot axes at row positions x and y. |
title("title") |
Displays "title" centered on top line of window. |
show_plot() |
Displays the buffered drawing output. The use_buffer() and show_plot() functions are useful in cases where displaying multiple objects on the screen could cause delays (not necessary in most cases). |
use_buffer() |
Enables an off-screen buffer to speed up drawing. |
Draw
Item |
Description |
---|---|
color(red,green,blue) |
Sets the color for all following graphics/plotting. |
cls() |
Clears the plotting canvas. |
show_plot() |
Executes the display of the plot as set up in the program. |
scatter(x-list,y-list,"mark") |
Plots a sequence of ordered pair from (x-list,y-list) with the specified mark style. |
plot(x-list,y-list,"mark") |
Plots a line using ordered pairs from specified x-list and y-list. |
plot(x,y,"mark") |
Plots a point using coordinates x and y with the specified mark style. |
line(x1,y1,x2,y2,"mode") |
Plots a line segment from (x1,y1) to (x2,y2). |
lin_reg(x-list,y-list,"display") |
Calculates and draws the linear regression model, ax+b, of x-list,y-list. |
pen("size","style") |
Sets the appearance of all following lines until the next pen() is executed. |
text_at(row,"text","align") |
Displays "text" in plotting area at specified "align". |
Properties
Item |
Description |
---|---|
xmin |
Specified variable for window arguments defined as plt.xmin. |
xmax |
Specified variable for window arguments defined as plt.xmax. |
ymin |
Specified variable for window arguments defined as plt.ymin. |
ymax |
Specified variable for window arguments defined as plt.ymax. |
m |
After plt.linreg() is executed in a program, the computed values of slope, m, and intercept, b, are stored in plt.m and plt.b. |
b |
After plt.linreg() is executed in a program, the computed values of slope, a, and intercept, b, are stored in plt.a and plt.b. |