12 public Plot(String filename) {
14 command=new PrintWriter(new FileOutputStream(filename+".cmd"), true);
15 } catch (IOException e) {
19 this.filename=filename;
20 series=new Hashtable();
23 public Series getSeries(String name) {
24 if (series.containsKey(name))
25 return (Series)series.get(name);
26 Series s=createSeries(name);
31 private Series createSeries(String name) {
34 s=new Series(new PrintWriter(new FileOutputStream(filename+"."+count),true));
35 } catch (IOException e) {
39 if (!first) cmdstr+=",";
41 cmdstr+="\""+filename+"."+count+"\" title \""+name+"\"";
47 for(Iterator it=series.values().iterator();it.hasNext();) {
48 Series s=(Series)it.next();
51 command.println(cmdstr);