Command.java
01 /*
02  * $Id: Command.java,v 1.4 2006/08/10 03:20:31 koga Exp $
03  *
04  * Copyright (C) 2004 Koga Laboratory. All rights reserved.
05  *
06  */
07 package matxbook.chap12old;
08 
09 import org.mklab.tool.graph.mgplot.Mgplot;
10 
11 
12 /**
13  * Gnuplotの一般コマンドを実行するサンプルです。
14  @author koga
15  @version $Revision: 1.4 $, 2004/05/01
16  */
17 public class Command {
18 
19   /**
20    * メインメソッド
21    
22    @param args コマンドライン引数
23    @throws InterruptedException 強制終了された場合
24    */
25   public static void main(String[] argsthrows InterruptedException {
26     Mgplot.command(1"plot sin(x)")//$NON-NLS-1$
27     Thread.sleep(10000);
28     Mgplot.quit();
29   }
30 }