Files
ch.psi.plot/ch.psi.plot/tmp/xyz/StaticMatrixPlotterTest.java
T

40 lines
621 B
Java

package ch.psi.plot.xyz;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class StaticMatrixPlotterTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void testMatrixPlotStatic(){
int ni = 11;
int nj = 19;
double[][] data = new double[ni][nj];
for (int i = 0; i < ni; i++) {
for (int j = 0; j < nj; j++) {
data[i][j] = i*j;
}
}
StaticMatrixPlotter.plot("test matrix plot", data);
try {
Thread.sleep(100000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}