Using JNumeric to create arrays and plot X-Y value
Code: "jnumeric_plot.py"
Programming language: Python
DMelt Version 1.4. Last modified: 12/27/1970. License: Free
http://jwork.org/dmelt/code/cache/jnumeric_plot_2010.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


from jnumeric.JNumeric import *

a = array( [20,30,40,50,70] )
b = array( [20,35,30,25,20] )

from jhplot import *
c=HPlot()
c.visible()
c.setAutoRange()
p=P1D( "data",sqrt(a).tolist(),  exp(b).tolist() )
p.setStyle("l")
c.draw(p)