? src/plugins/octave/octave/plot/__plt__.m ? src/plugins/octave/octave/plot/__tmplot__.m Index: src/plugins/octave/octave/plot/contour.m =================================================================== RCS file: /texmacs/src/plugins/octave/octave/plot/contour.m,v retrieving revision 1.1.1.1 diff -r1.1.1.1 contour.m 33a34,35 > ## Modified Jun. 2004 -- Moved common code to __tmplot__ external function > ## Author: Matteo Bertini 41,43c43,45 < if (length(getenv("TEXMACS_PATH"))>0) < gset output '/tmp/tmplot.eps'; < endif --- > #disp ("->prepare_output\n"); > __tmplot__ ("prepare_output"); > #disp ("<-prepare_output\n"); 69,88c71,73 < if (length(getenv("TEXMACS_PATH"))>0) < P=[2;112;115;58]; #P= "\002ps:" < g=fopen("/tmp/tmplot.eps"); < while (g==-1) < sleep(1); < g=fopen("/tmp/tmplot.eps"); < endwhile < while (!feof(g)) < f=fread(g,2048); < if (length(f)) < P=[P;f]; < endif < endwhile < fclose(g); < P=[P;5]; < disp(sprintf("%cverbatim:\n",2)); < disp(setstr(P')); < system("rm /tmp/tmplot.eps"); < endif < --- > #disp ("->output\n"); > __tmplot__ ("output"); > #disp ("<-output\n"); 125,144c110,112 < if (length(getenv("TEXMACS_PATH"))>0) < P=[2;112;115;58]; #P= "\002ps:" < g=fopen("/tmp/tmplot.eps"); < while (g==-1) < sleep(1); < g=fopen("/tmp/tmplot.eps"); < endwhile < while (!feof(g)) < f=fread(g,2048); < if (length(f)) < P=[P;f]; < endif < endwhile < fclose(g); < P=[P;5]; < disp(sprintf("%cverbatim:\n",2)); < disp(setstr(P')); < system("rm /tmp/tmplot.eps"); < endif < --- > #disp ("->output\n"); > __tmplot__ ("output"); > #disp ("<-output\n"); Index: src/plugins/octave/octave/plot/mesh.m =================================================================== RCS file: /texmacs/src/plugins/octave/octave/plot/mesh.m,v retrieving revision 1.1.1.1 diff -r1.1.1.1 mesh.m 35a36,37 > ## Modified Jun. 2004 -- Moved common code to __tmplot__ external function > ## Author: Matteo Bertini 54,56c56,58 < if (length(getenv("TEXMACS_PATH"))>0) < gset output '/tmp/tmplot.eps'; < endif --- > #disp ("->prepare_output\n"); > __tmplot__ ("prepare_output"); > #disp ("<-prepare_output\n"); 58,75c60,62 < if (length(getenv("TEXMACS_PATH"))>0) < g=fopen("/tmp/tmplot.eps"); < while (g==-1) < sleep(1); < g=fopen("/tmp/tmplot.eps"); < endwhile < while (!feof(g)) < f=fread(g,2048); < if (length(f)) < P=[P;f]; < endif < endwhile < fclose(g); < P=[P;5]; < disp(sprintf("%cverbatim:\n",2)); < disp(setstr(P')); < system("rm /tmp/tmplot.eps"); < endif --- > #disp ("->output\n"); > __tmplot__ ("output"); > #disp ("<-output\n"); 102,104c89,91 < if (length(getenv("TEXMACS_PATH"))>0) < gset output '/tmp/tmplot.eps'; < endif --- > #disp ("->prepare_output\n"); > __tmplot__ ("prepare_output"); > #disp ("<-prepare_output\n"); 107,124c94,96 < if (length(getenv("TEXMACS_PATH"))>0) < g=fopen("/tmp/tmplot.eps"); < while (g==-1) < sleep(1); < g=fopen("/tmp/tmplot.eps"); < endwhile < while (!feof(g)) < f=fread(g,2048); < if (length(f)) < P=[P;f]; < endif < endwhile < fclose(g); < P=[P;5]; < disp(sprintf("%cverbatim:\n",2)); < disp(setstr(P')); < system("rm /tmp/tmplot.eps"); < endif --- > #disp ("->output\n"); > __tmplot__ ("output"); > #disp ("<-output\n"); 150,152c122,124 < if (length(getenv("TEXMACS_PATH"))>0) < gset output '/tmp/tmplot.eps'; < endif --- > #disp ("->prepare_output\n"); > __tmplot__ ("prepare_output"); > #disp ("<-prepare_output\n"); 155,172c127,129 < if (length(getenv("TEXMACS_PATH"))>0) < g=fopen("/tmp/tmplot.eps"); < while (g==-1) < sleep(1); < g=fopen("/tmp/tmplot.eps"); < endwhile < while (!feof(g)) < f=fread(g,2048); < if (length(f)) < P=[P;f]; < endif < endwhile < fclose(g); < P=[P;5]; < disp(sprintf("%cverbatim:\n",2)); < disp(setstr(P')); < system("rm /tmp/tmplot.eps"); < endif --- > #disp ("->output\n"); > __tmplot__ ("output"); > #disp ("<-output\n");