01 /*
02 * $Id: Command.java,v 1.8 2007/06/11 00:44:51 koga Exp $
03 *
04 * Copyright (C) 2004 Koga Laboratory. All rights reserved.
05 *
06 */
07 package matxbook.chap12;
08
09 import java.io.IOException;
10
11 import org.mklab.nfc.util.Pause;
12 import org.mklab.tool.graph.gnuplot.Gnuplot;
13
14
15 /**
16 * Gnuplotの一般コマンドを実行するサンプルです。
17 * @author koga
18 * @version $Revision: 1.8 $, 2004/05/01
19 */
20 public class Command {
21
22 /**
23 * メインメソッド
24 *
25 * @param args コマンドライン引数
26 * @throws InterruptedException 強制終了された場合
27 * @throws IOException キーボードから入力できない場合
28 */
29 @SuppressWarnings("nls")
30 public static void main(String[] args) throws InterruptedException, IOException {
31 Gnuplot gnuplot = new Gnuplot();
32 gnuplot.doCommand("plot sin(x)");
33 Pause.pause();
34 gnuplot.close();
35 }
36 }
|