Using JNumeric to create arrays and plot X-Y value
Source code name: "jnumeric_plot.py"
Programming language: Python
Topic: Plots/2D
DMelt Version 1.4. Last modified: 12/27/1970. License: Free
https://datamelt.org/code/cache/jnumeric_plot_6367.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)