Post Reply 
Python Matplotl usage
10-20-2022, 06:06 PM
Post: #1
Python Matplotl usage
I have upgraded my HP Prime firmware & got python. I tried running stuff & its works. But I cannot display plot. Steps while in Python Numeric View (Apps)

Code:
from math import *
from matplotl import *
uk_x= [0.1*i for i in range(-10,10)]
uk_x #displays correct list of values
uk_y= [cos(i) for i in uk_x]
uk_y #displays correct list of values
plot(uk_x,uk_y) # no error but nothing happens as well
plot.show() #nothing
show() #nothing

After reading this thread I realized how to transfer variables from python to ppl https://www.hpmuseum.org/forum/thread-18380.html

Now If i want to assign values (list) stored in uk_x & uk_y to native HP Prime list variables say L1 & L2 how should I proceed? These then can be used in Stats APP for plotting & further stuff

HP Prime G1
Python via Android Termux...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Python Matplotl usage - Ioncubekh - 10-20-2022 06:06 PM
RE: Python Matplotl usage - Ioncubekh - 10-23-2022, 07:33 PM
RE: Python Matplotl usage - Guenter Schink - 10-23-2022, 10:08 PM
RE: Python Matplotl usage - Eddie W. Shore - 10-24-2022, 02:01 AM
RE: Python Matplotl usage - parisse - 10-24-2022, 01:08 PM
RE: Python Matplotl usage - Ioncubekh - 10-24-2022, 03:27 PM
RE: Python Matplotl usage - parisse - 10-25-2022, 10:04 AM
RE: Python Matplotl usage - Ioncubekh - 10-25-2022, 05:45 PM
RE: Python Matplotl usage - parisse - 10-25-2022, 08:03 PM
RE: Python Matplotl usage - Ioncubekh - 10-25-2022, 08:35 PM
RE: Python Matplotl usage - parisse - 10-26-2022, 10:38 AM



User(s) browsing this thread: 1 Guest(s)