From b500f3e32c6c331fb664e74919c4b45d24d4a8d0 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Fri, 1 Jan 2010 13:13:48 +0000 Subject: [PATCH] calling gnuplot via xterm --- ChangeLog | 4 ++++ src/frontend/plotting/gnuplot.c | 3 +-- src/spinit.in | 8 +++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index c42ac33ec..1b9c19812 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-01-01 Holger Vogt + * spinit.in: Small update + gnuplot.c: calling gnuplot via xterm + 2009-12-31 Holger Vogt * measure.c, resource.c, mesaload.c: small patches by R. Larice graf.c, plotit.c: gnuplot updates, point chars updated diff --git a/src/frontend/plotting/gnuplot.c b/src/frontend/plotting/gnuplot.c index 840f3ac16..a494f8358 100644 --- a/src/frontend/plotting/gnuplot.c +++ b/src/frontend/plotting/gnuplot.c @@ -209,11 +209,10 @@ ft_gnuplot(double *xlims, double *ylims, char *filename, char *title, char *xlab (void) fclose( file_data ); #if defined(__MINGW32__) || defined(_MSC_VER) -// (void) sprintf( buf, "wgnuplot %s -", filename_plt ); (void) sprintf( buf, "start /B wgnuplot %s -" , filename_plt ); _flushall(); #else - (void) sprintf( buf, "gnuplot %s - &", filename_plt ); + (void) sprintf( buf, "xterm -e gnuplot %s - &", filename_plt ); #endif err = system( buf ); diff --git a/src/spinit.in b/src/spinit.in index 9af9047f1..108361686 100644 --- a/src/spinit.in +++ b/src/spinit.in @@ -3,15 +3,17 @@ alias exit quit alias acct rusage all set x11lineararcs *set rndseed=12 +** ascii rawfile ** *set filetype=ascii +** frontend debug output ** +*set ngdebug +** no asking after quit ** +*set noaskquit -*unset brief strcmp __flag $program "ngspice" if $__flag = 0 -*set numparams - * For SPICE2 POLYs, edit the below line to point to the location * of your codemodel. @XSPICEINIT@ codemodel @prefix@/lib/spice/spice2poly.cm