G

global

 

Keyword

Description: Use global to create global variables inside a function.

See CircuitPython documentation for more details.

y N

grid(xscl,yscl,"style")

 

Module: ti_plotlib

Syntax: plt.grid(xscl,yscl,"style")

Description: Displays a grid using specified scale for x and y axes. Note: All plotting takes place when plt.show_plot() is executed.

Setting grid color is the optional argument of (r,g,b) using values 0-255 with default value of gray (192,192,192).

Default value for xscl or yscl = 1.0.

"style" = "dot" (default), "dash", "solid" or "point"

Example:

See sample programs: COLORLIN or GRAPH.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Setup
3:grid()


import commands can be found in y N or in the
ti_plotlib Setup menu.

 

grid(xscl,yscl,"style",(r,g,b))

 

Module: ti_plotlib

Syntax: plt.grid(xscl,yscl,"style",(r,g,b))

Description: Displays a grid using specified scale for x and y axes. Note: All plotting takes place when plt.show_plot() is executed.

Setting grid color is the optional argument of (r,g,b) using values 0-255 with default value of gray (192,192,192).

Default value for xscl or yscl = 1.0.

"style" = "dot" (default), "dash", "solid" or "point" .

If the xscl or yscl values are less than 1/50th of the difference between xmax-xmin or ymax-ymin, then an exception of 'Invalid grid scale value.'

Example:

See sample program: GRAPH.

y N

[Fns...]>Modul or »
5:ti_plotlib...> Setup
3:grid()


import commands can be found in y N or in the
ti_plotlib Setup menu.