Index: mttroot/mtt/cc/struc2gnuplot_txt.cc ================================================================== --- mttroot/mtt/cc/struc2gnuplot_txt.cc +++ mttroot/mtt/cc/struc2gnuplot_txt.cc @@ -47,20 +47,20 @@ // write states (X11) for (list::iterator i = Lx.begin(); i != Lx.end() ; i++) { - out << "plot " << "\"MTT_work/" << sys << "_odes.dat2\" using 1:" << 2 + Ly.size() + i->num + out << "plot " << "\"" << sys << "_odes.dat2\" using 1:" << 2 + Ly.size() + i->num << " axes x1y1 title \"" << i->mod << "_" << i->cmp << ";" << endl << "pause(wait);" << endl; } // write outputs (X11) for (list::iterator i = Ly.begin(); i != Ly.end() ; i++) { - out << "plot " << "\"MTT_work/" << sys << "_odes.dat2\" using 1:" << 1 + i->num + out << "plot " << "\"" << sys << "_odes.dat2\" using 1:" << 1 + i->num << " axes x1y1 title \"" << i->mod << "_" << i->cmp << endl << "; pause(wait);" << endl; } return out; Index: mttroot/mtt/lib/rep/gnuplot_rep.make ================================================================== --- mttroot/mtt/lib/rep/gnuplot_rep.make +++ mttroot/mtt/lib/rep/gnuplot_rep.make @@ -2,10 +2,13 @@ # create a gnuplot input file MTTFLAGS = $(OPTS) all: $(SYS)_gnuplot.$(LANG) + +$(SYS)_gnuplot.view: $(SYS)_gnuplot.txt $(SYS)_odes.dat2 + gnuplot $(SYS)_gnuplot.txt $(SYS)_gnuplot.txt: $(SYS)_struc.txt $(MTTPATH)/trans/struc2gnuplot_txt.exe $(MTTPATH)/trans/struc2gnuplot_txt.exe $(SYS) < $(SYS)_struc.txt > $(SYS)_gnuplot.txt $(SYS)_struc.txt: @@ -12,5 +15,7 @@ mtt $(MTTFLAGS) $(SYS) struc txt $(MTTPATH)/trans/struc2gnuplot_txt.exe: make -f $(MTT_CC)/Makefile struc2gnuplot_txt.exe +$(SYS)_odes.dat2: + mtt $(OPTS) $(SYS) odes dat2