importClass(Packages.icy.gui.frame.IcyFrame)
importClass(Packages.plugins.adufour.jmathplot.JMathPlot)
importClass(Packages.org.math.plot.Plot2DPanel)

// prepare the XY data
x = [1, 2, 3]
y = [10,30,20]

// create the plot panel
plot = new Plot2DPanel()
plot.addLinePlot("my plot", x, y)

// create the window
window = new IcyFrame("My window")
window.addToDesktopPane()

// add the plot to the window
window.add(plot)
// show the window on screen
window.setVisible(true)

