Need help or advice ? Come to the Icy club ! - Every Wenesday morning from 9h30 to 12h30 - Francois Jacob Building - Main hall - Pasteur
Register

JMathPlot script

by bouzekri

JMath Plot script

version 2 (last version):

download to use and modify in Icy. How do I use scripts ? A Problem ? ask the community.
Changelog for this version:
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)

This script has no documentation. A Problem ? ask the community.


Previous versions:


version 1:

download to use and modify in Icy.
Changelog for this version: initial version
importClass(Packages.plugins.adufour.jmathplot.JMathPlot)

seq = getSequence()

Plot2DPanel plot = new Plot2DPanel()

plot = plot.addlinePlot ("my plot", 200, 200)

JFrame frame = new JFrame("a plot panel");
  frame.setContentPane(plot);
  frame.setVisible(true);

gui.addSequence(plot)



Icy script publication Id : B5A3D8