fix a typo, correct writing to files under Linux
This commit is contained in:
parent
39ae596053
commit
759afd1f84
|
|
@ -20,7 +20,7 @@
|
||||||
#undef BOOLEAN
|
#undef BOOLEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#include <unistd.h.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define GP_MAXVECTORS 64
|
#define GP_MAXVECTORS 64
|
||||||
|
|
@ -335,7 +335,11 @@ ft_gnuplot(double *xlims, double *ylims, char *filename, char *title, char *xlab
|
||||||
#else
|
#else
|
||||||
/* for external fcn system() from LINUX environment */
|
/* for external fcn system() from LINUX environment */
|
||||||
if (terminal_type == 3) {
|
if (terminal_type == 3) {
|
||||||
fprintf(cp_out, "writing plot to file %s\n", filename_plt);
|
fprintf(cp_out, "writing plot to file %s.png\n", filename);
|
||||||
|
(void) sprintf(buf, "gnuplot %s", filename_plt);
|
||||||
|
}
|
||||||
|
else if (terminal_type == 5) {
|
||||||
|
fprintf(cp_out, "writing plot to file %s.eps\n", filename);
|
||||||
(void) sprintf(buf, "gnuplot %s", filename_plt);
|
(void) sprintf(buf, "gnuplot %s", filename_plt);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue