Jody Crothers
Head of Learning Area (Mathematics)
Ridge View Secondary College
Western Australia
> I want to plot a drawing using sets of points in a spreadsheet page using python. eg draw line from xval[1],yval[1] to xval[2],yval[2]
Hi Jody,
If you already have the points in two lists, you can use the “recall_list()” function from the ti_system module to pull in the lists into your Python program.
Then to draw the lists, you can two options:
With this method, you will have to be careful about your range() for the ‘for’ loop – it will need to end at len(array) - 1
The attached TNS file has two lists and a Python program that shows both options.
If you run the program as-is, it will plot in black, wait for you to press a key and then plot the same graph using the 2nd method in red.
Hope this makes sense.
Please let me know if you have any questions or comments.
Regards,
- Harshal
Jody Crothers
Head of Learning Area (Mathematics)
Ridge View Secondary College
Western Australia
Jody Crothers
Head of Learning Area (Mathematics)
Ridge View Secondary College
Western Australia