Post Reply 
Python: How to Show a Plot
05-10-2021, 05:35 AM
Post: #6
RE: Python: How to Show a Plot
(05-09-2021 09:21 PM)Eddie W. Shore Wrote:  
Code:

import matplotl import *
import hpprime import *

axis([0,0,10,10])
grid(True)
plot(1,1)
xlist=[1,2,3,4,5]
ylist=[7,8,9,8,7]
scatter(xlist,ylist)
eval("wait()")

Still nothing is showing. I can get plots with graphic module fine though.

The scatter and scatterplot commands do not work for me. The commands plot and hist do.

Below is a code you can try using plot:

Code:

from matplotl import *

xlist=[1,2,3,4,5]
ylist=[7,8,9,8,7]
plot(xlist,ylist)

For reference, I have the HP Prime G2.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Python: How to Show a Plot - ace - 05-09-2021, 08:28 PM
RE: Python: How to Show a Plot - rprosperi - 05-09-2021, 11:43 PM
RE: Python: How to Show a Plot - tcab - 05-09-2021, 11:43 PM
RE: Python: How to Show a Plot - ace - 05-10-2021 05:35 AM
RE: Python: How to Show a Plot - robmio - 05-10-2021, 07:34 PM



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