home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-01-05 | 46.0 KB | 1,685 lines |
- diff -cr ./makefile.x11 ../gnuplot2.02/makefile.x11
- *** ./makefile.x11 Tue Sep 18 14:56:55 1990
- --- ../gnuplot2.02/makefile.x11 Tue Dec 11 16:42:09 1990
- ***************
- *** 1,5
- #
- ! # GNUPLOT Makefile (Unix X11 support)
- #
-
- # directory where to install executables on 'make install'
-
- --- 1,5 -----
- #
- ! # GNUPLOT Makefile (Unix X11 Motif/Athena support)
- #
-
- # directory where to install executables on 'make install'
- ***************
- *** 16,22
- # -DBCOPY if your memcpy() is called bcopy() (a Berkeleyism, right?)
- # -DBZERO if you need to use bzero() (another BSD feature) instead of memset()
- # -DNOCOPY if you don't have a memcpy() by any name
- ! # -DGAMMA if you've got gamma(3)
- # -fswitch if you are compiling on a Sun3 (or even -f68881)
- # (but -fswitch is buggy on some systems, so watch out)
- # -O if you trust your compiler's optimizer
-
- --- 16,27 -----
- # -DBCOPY if your memcpy() is called bcopy() (a Berkeleyism, right?)
- # -DBZERO if you need to use bzero() (another BSD feature) instead of memset()
- # -DNOCOPY if you don't have a memcpy() by any name
- ! # -DGAMMA=gamma if you've got gamma(3)
- ! # -DNOCWDRC to inhibit check of ".gnuplot" in current directory
- ! # (for security reasons)
- ! # -DGETCWD if your unix uses getcwd() instead of getcd()
- ! # this is needed by HP-UX and Cray Unicos systems.
- ! # -Dunix is required to explicitly define "unix" for SCO
- # -fswitch if you are compiling on a Sun3 (or even -f68881)
- # (but -fswitch is buggy on some systems, so watch out)
- # -O if you trust your compiler's optimizer
- ***************
- *** 20,27
- # -fswitch if you are compiling on a Sun3 (or even -f68881)
- # (but -fswitch is buggy on some systems, so watch out)
- # -O if you trust your compiler's optimizer
- ! # -Dunix and no -DVFORK if IBM RS/6000 AIX 3.1
- ! CFLAGS = -DVFORK -DBCOPY -DBZERO -DGAMMA #-gx #-O
-
- # -lplot if you have -DUNIXPLOT
- # -lsuntool -lsunwindow -lpixrect if you have -DSUN
-
- --- 25,31 -----
- # -fswitch if you are compiling on a Sun3 (or even -f68881)
- # (but -fswitch is buggy on some systems, so watch out)
- # -O if you trust your compiler's optimizer
- ! CFLAGS = -DVFORK -DBCOPY -DBZERO -DGAMMA=gamma #-gx #-O
-
- # -lplot if you have -DUNIXPLOT
- # -lsuntool -lsunwindow -lpixrect if you have -DSUN
- ***************
- *** 26,31
- # -lplot if you have -DUNIXPLOT
- # -lsuntool -lsunwindow -lpixrect if you have -DSUN
- # -lgl_s if IRIS4D
- LIBS = -lm -lplot
-
- # standard MIT X11 R4: -lXaw -lXmu -lXt -lXext -lX11
-
- --- 30,36 -----
- # -lplot if you have -DUNIXPLOT
- # -lsuntool -lsunwindow -lpixrect if you have -DSUN
- # -lgl_s if IRIS4D
- + # -lccgi if -DCGI
- LIBS = -lm -lplot
-
- # -DMOTIF if Motif rather then Athena
- ***************
- *** 28,33
- # -lgl_s if IRIS4D
- LIBS = -lm -lplot
-
- # standard MIT X11 R4: -lXaw -lXmu -lXt -lXext -lX11
- # Apollo DomainOS 10.4.2 (R3): -L/usr/lib/X11 -lXaw -lXmu -lXt -lX11
- # IBM RS/6000 AIX 3.1 (R3): -L/usr/lpp/X11/Xamples/lib/Xmu \
-
- --- 33,41 -----
- # -lccgi if -DCGI
- LIBS = -lm -lplot
-
- + # -DMOTIF if Motif rather then Athena
- + X11FLAGS = #-DMOTIF
- +
- # standard MIT X11 R4: -lXaw -lXmu -lXt -lXext -lX11
- # Apollo DomainOS 10.3 (R3/Athena): -L/usr/lib/X11 -lXaw -lXmu -lXt -lX11
- # Apollo DomainOS 10.3 (R3/Motif): -L/usr/lib/X11 -lXm -lXtm -lX11
- ***************
- *** 29,36
- LIBS = -lm -lplot
-
- # standard MIT X11 R4: -lXaw -lXmu -lXt -lXext -lX11
- ! # Apollo DomainOS 10.4.2 (R3): -L/usr/lib/X11 -lXaw -lXmu -lXt -lX11
- ! # IBM RS/6000 AIX 3.1 (R3): -L/usr/lpp/X11/Xamples/lib/Xmu \
- # -L/usr/lpp/X11/Xamples/lib/Xaw \
- # -lXaw -lXmu -lXt -lXext -lX11
- X11LIBS = -lXaw -lXmu -lXt -lXext -lX11
-
- --- 37,45 -----
- X11FLAGS = #-DMOTIF
-
- # standard MIT X11 R4: -lXaw -lXmu -lXt -lXext -lX11
- ! # Apollo DomainOS 10.3 (R3/Athena): -L/usr/lib/X11 -lXaw -lXmu -lXt -lX11
- ! # Apollo DomainOS 10.3 (R3/Motif): -L/usr/lib/X11 -lXm -lXtm -lX11
- ! # IBM RS/6000 AIX 3.1 (R3/Athena): -L/usr/lpp/X11/Xamples/lib/Xmu \
- # -L/usr/lpp/X11/Xamples/lib/Xaw \
- # -lXaw -lXmu -lXt -lXext -lX11
- # IBM RS/6000 AIX 3.1 (R3/Motif): -lXm -lXt -lX11
- ***************
- *** 33,38
- # IBM RS/6000 AIX 3.1 (R3): -L/usr/lpp/X11/Xamples/lib/Xmu \
- # -L/usr/lpp/X11/Xamples/lib/Xaw \
- # -lXaw -lXmu -lXt -lXext -lX11
- X11LIBS = -lXaw -lXmu -lXt -lXext -lX11
-
- # standard MIT X11 R4: -I/usr/include/X11 -I/usr/include/X11/Xaw
-
- --- 42,49 -----
- # IBM RS/6000 AIX 3.1 (R3/Athena): -L/usr/lpp/X11/Xamples/lib/Xmu \
- # -L/usr/lpp/X11/Xamples/lib/Xaw \
- # -lXaw -lXmu -lXt -lXext -lX11
- + # IBM RS/6000 AIX 3.1 (R3/Motif): -lXm -lXt -lX11
- + # HP 9000/375 HP-UX 6.5 and 7.0 (R3/Motif): -lXm -lXt -lX11
- X11LIBS = -lXaw -lXmu -lXt -lXext -lX11
-
- # standard MIT X11 R4: -I/usr/include/X11 -I/usr/include/X11/Xaw
- ***************
- *** 36,44
- X11LIBS = -lXaw -lXmu -lXt -lXext -lX11
-
- # standard MIT X11 R4: -I/usr/include/X11 -I/usr/include/X11/Xaw
- ! # Apollo DomainOS 10.4.2 (R3): -I/usr/include/X11
- ! # IBM RS/6000 AIX 3.1 (R3): -I/usr/include/X11 -I/usr/lpp/X11/Xamples/lib/Xaw \
- ! # -I/usr/lpp/X11/Xamples/lib/Xaw/X11
- X11INCLUDES = -I/usr/include/X11 -I/usr/include/X11/Xaw
-
- # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
-
- --- 47,59 -----
- X11LIBS = -lXaw -lXmu -lXt -lXext -lX11
-
- # standard MIT X11 R4: -I/usr/include/X11 -I/usr/include/X11/Xaw
- ! # Apollo DomainOS 10.3 (R3/Athena): -I/usr/include/X11
- ! # Apollo DomainOS 10.3 (R3/Motif): -I/usr/include/Xm
- ! # IBM RS/6000 AIX 3.1 (R3/Athena): -I/usr/include/X11 \
- ! # -I/usr/lpp/X11/Xamples/lib/Xaw \
- ! # -I/usr/lpp/X11/Xamples/lib/Xaw/X11
- ! # IBM RS/6000 AIX 3.1 (R3/Motif): -I/usr/include/Xm
- ! # HP 9000/375 HP-UX 6.5 and 7.0 (R3/Motif): -I/usr/include/Xm
- X11INCLUDES = -I/usr/include/X11 -I/usr/include/X11/Xaw
-
- # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
- ***************
- *** 43,48
-
- # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
- # see other terminal defines in term.h
- # -DFIG Fig graphics language (requires object.h from TransFig)
- # -DIRIS4D IRIS4D series computer
- # -DSUN Sun Microsystems Workstation
-
- --- 58,64 -----
-
- # -D<terminal> in TERMFLAGS iff you wish to support <terminal>
- # see other terminal defines in term.h
- + # -DCGI SCO CGI
- # -DFIG Fig graphics language (requires object.h from TransFig)
- # -DIRIS4D IRIS4D series computer
- # -DSUN Sun Microsystems Workstation
- ***************
- *** 51,57
-
- TERMFLAGS = -Iterm -DUNIXPLOT -DX11
-
- ! OBJS = command.o eval.o graphics.o help.o internal.o misc.o parse.o\
- plot.o scanner.o setshow.o standard.o term.o util.o
-
- DIRS = term demo bugtest docs docs/latextut translate
-
- --- 67,73 -----
-
- TERMFLAGS = -Iterm -DUNIXPLOT -DX11
-
- ! OBJS = bitmap.o command.o eval.o graphics.o help.o internal.o misc.o parse.o\
- plot.o scanner.o setshow.o standard.o term.o util.o
-
- DIRS = term demo bugtest docs docs/latextut translate
- ***************
- *** 58,71
- CSOURCE1 = command.c setshow.c
- CSOURCE2 = help.c graphics.c internal.c
- CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c
- ! CSOURCE4 = term.c util.c version.c
- ! CSOURCE5 = term/aed.trm term/dxy.trm term/epson.trm term/font5x7.trm \
- ! term/hp26.trm term/hp2648.trm term/hpgl.trm \
- ! term/hpljet.trm term/iris4d.trm term/sun.trm
- ! CSOURCE6 = term/post.trm term/pc.trm term/qms.trm term/regis.trm \
- ! term/tek.trm term/unixpc.trm term/unixplot.trm term/v384.trm
- ! CSOURCE7 = term/imPcodes.h term/imagen.trm term/object.h term/fig.trm \
- ! term/latex.trm term/eepic.trm term/x11.trm gnuplot_x11.c
- # not C code, but still needed
- ETC = Copyright README README.gnutex makefile.unx makefile.vms \
- README.x11 makefile.x11 \
-
- --- 74,88 -----
- CSOURCE1 = command.c setshow.c
- CSOURCE2 = help.c graphics.c internal.c
- CSOURCE3 = misc.c eval.c parse.c plot.c scanner.c standard.c
- ! CSOURCE4 = bitmap.c term.c util.c version.c
- ! CSOURCE5 = term/aed.trm term/cgi.trm term/dxy.trm term/eepic.trm \
- ! term/epson.trm term/fig.trm term/hp26.trm term/hp2648.trm \
- ! term/hpgl.trm term/hpljii.trm
- ! CSOURCE6 = term/imPcodes.h term/imagen.trm term/object.h \
- ! term/iris4d.trm term/kyo.trm term/latex.trm term/pc.trm
- ! CSOURCE7 = term/post.trm term/qms.trm term/regis.trm term/sun.trm \
- ! term/t410x.trm term/tek.trm term/unixpc.trm term/unixplot.trm \
- ! term/v384.trm term/x11.trm gnuplot_x11.c
- # not C code, but still needed
- ETC = Copyright README README.gnutex makefile.unx makefile.vms \
- README.x11 makefile.x11 \
- ***************
- *** 69,75
- # not C code, but still needed
- ETC = Copyright README README.gnutex makefile.unx makefile.vms \
- README.x11 makefile.x11 \
- ! makefile.3b1 plot.h help.h setshow.h term.h lasergnu \
- demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
- demo/simple.demo demo/polar.demo demo/electron.demo \
- bugtest/README bugtest/printf.c bugtest/scanf.c \
-
- --- 86,92 -----
- # not C code, but still needed
- ETC = Copyright README README.gnutex makefile.unx makefile.vms \
- README.x11 makefile.x11 \
- ! makefile.3b1 plot.h help.h setshow.h bitmap.h term.h lasergnu \
- demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
- demo/simple.demo demo/polar.demo demo/electron.demo \
- demo/param.demo demo/using.demo demo/using.dat \
- ***************
- *** 72,77
- makefile.3b1 plot.h help.h setshow.h term.h lasergnu \
- demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
- demo/simple.demo demo/polar.demo demo/electron.demo \
- bugtest/README bugtest/printf.c bugtest/scanf.c \
- bugtest/mscbug.c term/README \
- linkopt.vms buildvms.com
-
- --- 89,95 -----
- makefile.3b1 plot.h help.h setshow.h bitmap.h term.h lasergnu \
- demo/1.dat demo/2.dat demo/3.dat demo/controls.demo \
- demo/simple.demo demo/polar.demo demo/electron.demo \
- + demo/param.demo demo/using.demo demo/using.dat \
- bugtest/README bugtest/printf.c bugtest/scanf.c \
- bugtest/mscbug.c term/README \
- linkopt.vms buildvms.com
- ***************
- *** 82,88
- DOCS1 = docs/Makefile docs/README docs/checkdoc.c docs/doc2gih.c \
- docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
- docs/gnuplot.1 docs/lasergnu.1 \
- ! docs/titlepage.ms docs/titlepage.tex
- DOCS2 = docs/gnuplot.doc
- DOCS3 = docs/latextut/Makefile docs/latextut/eg1.plt \
- docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
-
- --- 100,106 -----
- DOCS1 = docs/Makefile docs/README docs/checkdoc.c docs/doc2gih.c \
- docs/doc2hlp.c docs/doc2hlp.com docs/doc2ms.c docs/doc2tex.c \
- docs/gnuplot.1 docs/lasergnu.1 \
- ! docs/titlepage.ms docs/titlepage.tex
- DOCS2 = docs/gnuplot.doc
- DOCS3 = docs/latextut/Makefile docs/latextut/eg1.plt \
- docs/latextut/eg2.plt docs/latextut/eg3.dat docs/latextut/eg3.plt \
- ***************
- *** 108,114
- (cd translate; make)
-
- gnuplot_x11: gnuplot_x11.c
- ! $(CC) $(CFLAGS) $(X11INCLUDES) -o gnuplot_x11 gnuplot_x11.c $(X11LIBS)
-
- install: gnuplot gnuplot_x11 doc man_install
- cp gnuplot gnuplot_x11 lasergnu $(DEST)
-
- --- 126,132 -----
- (cd translate; make)
-
- gnuplot_x11: gnuplot_x11.c
- ! $(CC) $(CFLAGS) $(X11FLAGS) $(X11INCLUDES) -o gnuplot_x11 gnuplot_x11.c $(X11LIBS)
-
- install: gnuplot gnuplot_x11 doc man_install
- cp gnuplot gnuplot_x11 lasergnu $(DEST)
- ***************
- *** 116,124
- strip $(DEST)/gnuplot_x11
- (cd docs; make install-unix HELPDEST=$(HELPDEST))
-
- ! man_install: docs/gnuplot.1.x11 docs/lasergnu.1
- ! cp docs/lasergnu.1 $(MANDEST)
- ! cp docs/gnuplot.1.x11 $(MANDEST)/gnuplot.1
-
- plot.o: plot.c
- $(CC) $(CFLAGS) -DX11 -c plot.c
-
- --- 134,141 -----
- strip $(DEST)/gnuplot_x11
- (cd docs; make install-unix HELPDEST=$(HELPDEST))
-
- ! man_install: docs/gnuplot.1 docs/lasergnu.1
- ! cp docs/gnuplot.1 docs/lasergnu.1 $(MANDEST)
-
- plot.o: plot.c
- $(CC) $(CFLAGS) -DX11 -c plot.c
- ***************
- *** 123,129
- plot.o: plot.c
- $(CC) $(CFLAGS) -DX11 -c plot.c
-
- ! term.o: term.h $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
- $(CC) $(CFLAGS) $(TERMFLAGS) -c term.c
-
- version.o:
-
- --- 140,146 -----
- plot.o: plot.c
- $(CC) $(CFLAGS) -DX11 -c plot.c
-
- ! term.o: term.h term.c $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
- $(CC) $(CFLAGS) $(TERMFLAGS) -c term.c
-
- version.o:
- ***************
- *** 136,142
-
- command.o help.o misc.o: help.h
-
- ! command.o graphics.o misc.o plot.o setshow.o: setshow.h
-
- SOURCES=plot.h help.h setshow.h $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) \
- $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
-
- --- 153,159 -----
-
- command.o help.o misc.o: help.h
-
- ! command.o graphics.o misc.o plot.o setshow.o term.o: setshow.h
-
- bitmap.o term.o: bitmap.h
-
- ***************
- *** 138,145
-
- command.o graphics.o misc.o plot.o setshow.o: setshow.h
-
- ! SOURCES=plot.h help.h setshow.h $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) \
- ! $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
-
- lint:
- lint -hx $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) $(CSOURCE4)
-
- --- 155,161 -----
-
- command.o graphics.o misc.o plot.o setshow.o term.o: setshow.h
-
- ! bitmap.o term.o: bitmap.h
-
- SOURCES=plot.h help.h setshow.h bitmap.h term.h $(CSOURCE1) $(CSOURCE2) \
- $(CSOURCE3) $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
- ***************
- *** 141,146
- SOURCES=plot.h help.h setshow.h $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) \
- $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
-
- lint:
- lint -hx $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) $(CSOURCE4)
-
-
- --- 157,165 -----
-
- bitmap.o term.o: bitmap.h
-
- + SOURCES=plot.h help.h setshow.h bitmap.h term.h $(CSOURCE1) $(CSOURCE2) \
- + $(CSOURCE3) $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
- +
- lint:
- lint -hx $(SOURCES)
-
- ***************
- *** 142,148
- $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
-
- lint:
- ! lint -hx $(CSOURCE1) $(CSOURCE2) $(CSOURCE3) $(CSOURCE4)
-
- clean:
- rm -f *.o *~ term/*~
-
- --- 161,167 -----
- $(CSOURCE3) $(CSOURCE4) $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
-
- lint:
- ! lint -hx $(SOURCES)
-
- clean:
- rm -f *.o *~ term/*~
- diff -cr ./misc.c ../gnuplot2.02/misc.c
- *** ./misc.c Tue Sep 18 14:56:57 1990
- --- ../gnuplot2.02/misc.c Tue Dec 4 09:23:40 1990
- ***************
- *** 36,41
- #include <graphics.h>
- #endif
-
- extern char *malloc();
-
- extern int c_token;
-
- --- 36,42 -----
- #include <graphics.h>
- #endif
-
- + #ifndef _IBMR2
- extern char *malloc();
- #endif
-
- ***************
- *** 37,42
- #endif
-
- extern char *malloc();
-
- extern int c_token;
- extern char replot_line[];
-
- --- 38,44 -----
-
- #ifndef _IBMR2
- extern char *malloc();
- + #endif
-
- extern int c_token;
- extern char replot_line[];
- ***************
- *** 224,229
- log_x ? 'x' : ' ', log_y ? 'y' : ' ');
- fprintf(fp,"set offsets %g, %g, %g, %g\n",loff,roff,toff,boff);
- fprintf(fp,"set %spolar\n", (polar)? "" : "no");
- fprintf(fp,"set samples %d\n",samples);
- fprintf(fp,"set size %g,%g\n",xsize,ysize);
- fprintf(fp,"set data style ");
-
- --- 226,232 -----
- log_x ? 'x' : ' ', log_y ? 'y' : ' ');
- fprintf(fp,"set offsets %g, %g, %g, %g\n",loff,roff,toff,boff);
- fprintf(fp,"set %spolar\n", (polar)? "" : "no");
- + fprintf(fp,"set %sparametric\n", (parametric)? "" : "no");
- fprintf(fp,"set samples %d\n",samples);
- fprintf(fp,"set size %g,%g\n",xsize,ysize);
- fprintf(fp,"set data style ");
- ***************
- *** 246,251
- save_tics(fp, xtics, 'x', &xticdef);
- save_tics(fp, ytics, 'y', &yticdef);
- fprintf(fp,"set title \"%s\"\n",title);
- fprintf(fp,"set xlabel \"%s\"\n",xlabel);
- fprintf(fp,"set xrange [%g : %g]\n",xmin,xmax);
- fprintf(fp,"set ylabel \"%s\"\n",ylabel);
-
- --- 249,255 -----
- save_tics(fp, xtics, 'x', &xticdef);
- save_tics(fp, ytics, 'y', &yticdef);
- fprintf(fp,"set title \"%s\"\n",title);
- + fprintf(fp,"set trange [%g : %g]\n",tmin,tmax);
- fprintf(fp,"set xlabel \"%s\"\n",xlabel);
- fprintf(fp,"set xrange [%g : %g]\n",xmin,xmax);
- fprintf(fp,"set ylabel \"%s\"\n",ylabel);
- ***************
- *** 250,255
- fprintf(fp,"set xrange [%g : %g]\n",xmin,xmax);
- fprintf(fp,"set ylabel \"%s\"\n",ylabel);
- fprintf(fp,"set yrange [%g : %g]\n",ymin,ymax);
- fprintf(fp,"set %s %c%c\n",
- (autoscale_y||autoscale_x) ? "autoscale" : "noautoscale",
- autoscale_x ? 'x' : ' ', autoscale_y ? 'y' : ' ');
-
- --- 254,261 -----
- fprintf(fp,"set xrange [%g : %g]\n",xmin,xmax);
- fprintf(fp,"set ylabel \"%s\"\n",ylabel);
- fprintf(fp,"set yrange [%g : %g]\n",ymin,ymax);
- + fprintf(fp,"set %s %c\n",
- + autoscale_t ? "autoscale" : "noautoscale", 't');
- fprintf(fp,"set %s %c%c\n",
- (autoscale_y||autoscale_x) ? "autoscale" : "noautoscale",
- autoscale_x ? 'x' : ' ', autoscale_y ? 'y' : ' ');
- ***************
- *** 341,347
-
- if (input_line[len] == '\\') { /* line continuation */
- start = len;
- ! left -= len;
- } else
- more = FALSE;
- }
-
- --- 347,353 -----
-
- if (input_line[len] == '\\') { /* line continuation */
- start = len;
- ! left = MAX_LINE_LEN - start; /* left -=len;*/
- } else
- more = FALSE;
- }
- diff -cr ./plot.c ../gnuplot2.02/plot.c
- *** ./plot.c Tue Sep 18 14:57:01 1990
- --- ../gnuplot2.02/plot.c Mon Nov 26 09:17:19 1990
- ***************
- *** 167,176
- /* Register the Borland Graphics Interface drivers. If they have been */
- /* included by the linker. */
- #ifdef __TURBOC__
- ! registerbgidriver(CGA_driver);
- ! registerbgidriver(EGAVGA_driver);
- ! registerbgidriver(Herc_driver);
- ! registerbgidriver(ATT_driver);
- #endif
- #ifdef X11
- { int n = X11_args(argc, argv); argv += n; argc -= n; }
-
- --- 167,176 -----
- /* Register the Borland Graphics Interface drivers. If they have been */
- /* included by the linker. */
- #ifdef __TURBOC__
- ! registerfarbgidriver(CGA_driver_far);
- ! registerfarbgidriver(EGAVGA_driver_far);
- ! registerfarbgidriver(Herc_driver_far);
- ! registerfarbgidriver(ATT_driver_far);
- #endif
- #ifdef X11
- { int n = X11_args(argc, argv); argv += n; argc -= n; }
- ***************
- *** 209,215
- /* after catching interrupt */
- /* VAX stuffs up stdout on SIGINT while writing to stdout,
- so reopen stdout. */
- ! if (outfile = stdout) {
- if ( (stdout = freopen("SYS$OUTPUT","w",stdout)) == NULL) {
- /* couldn't reopen it so try opening it instead */
- if ( (stdout = fopen("SYS$OUTPUT","w")) == NULL) {
-
- --- 209,215 -----
- /* after catching interrupt */
- /* VAX stuffs up stdout on SIGINT while writing to stdout,
- so reopen stdout. */
- ! if (outfile == stdout) {
- if ( (stdout = freopen("SYS$OUTPUT","w",stdout)) == NULL) {
- /* couldn't reopen it so try opening it instead */
- if ( (stdout = fopen("SYS$OUTPUT","w")) == NULL) {
- ***************
- *** 270,275
- #else
- (void) strcat(strcpy(home,getenv(HOME)),"/");
- #endif /* vms */
- (void) strcpy(rcfile, PLOTRC);
- plotrc = fopen(rcfile,"r");
- if (plotrc == (FILE *)NULL) {
-
- --- 270,279 -----
- #else
- (void) strcat(strcpy(home,getenv(HOME)),"/");
- #endif /* vms */
- + #ifdef NOCWDRC
- + /* inhibit check of init file in current directory for security reasons */
- + {
- + #else
- (void) strcpy(rcfile, PLOTRC);
- plotrc = fopen(rcfile,"r");
- if (plotrc == (FILE *)NULL) {
- ***************
- *** 273,278
- (void) strcpy(rcfile, PLOTRC);
- plotrc = fopen(rcfile,"r");
- if (plotrc == (FILE *)NULL) {
- (void) sprintf(rcfile, "%s%s", home, PLOTRC);
- plotrc = fopen(rcfile,"r");
- }
-
- --- 277,283 -----
- (void) strcpy(rcfile, PLOTRC);
- plotrc = fopen(rcfile,"r");
- if (plotrc == (FILE *)NULL) {
- + #endif
- (void) sprintf(rcfile, "%s%s", home, PLOTRC);
- plotrc = fopen(rcfile,"r");
- }
- diff -cr ./setshow.c ../gnuplot2.02/setshow.c
- *** ./setshow.c Thu Aug 30 16:16:47 1990
- --- ../gnuplot2.02/setshow.c Tue Dec 4 12:09:45 1990
- ***************
- *** 39,44
- * global variables to hold status of 'set' options
- *
- */
- BOOLEAN autoscale_x = TRUE;
- BOOLEAN autoscale_y = TRUE;
- BOOLEAN autoscale_lx = TRUE;
-
- --- 39,45 -----
- * global variables to hold status of 'set' options
- *
- */
- + BOOLEAN autoscale_t = TRUE;
- BOOLEAN autoscale_x = TRUE;
- BOOLEAN autoscale_y = TRUE;
- BOOLEAN autoscale_lt = TRUE;
- ***************
- *** 41,46
- */
- BOOLEAN autoscale_x = TRUE;
- BOOLEAN autoscale_y = TRUE;
- BOOLEAN autoscale_lx = TRUE;
- BOOLEAN autoscale_ly = TRUE;
- BOOLEAN clip_points = FALSE;
-
- --- 42,48 -----
- BOOLEAN autoscale_t = TRUE;
- BOOLEAN autoscale_x = TRUE;
- BOOLEAN autoscale_y = TRUE;
- + BOOLEAN autoscale_lt = TRUE;
- BOOLEAN autoscale_lx = TRUE;
- BOOLEAN autoscale_ly = TRUE;
- BOOLEAN clip_points = FALSE;
- ***************
- *** 59,64
- FILE* outfile;
- char outstr[MAX_ID_LEN+1] = "STDOUT";
- BOOLEAN polar = FALSE;
- int samples = SAMPLES;
- float xsize = 1.0; /* scale factor for size */
- float ysize = 1.0; /* scale factor for size */
-
- --- 61,67 -----
- FILE* outfile;
- char outstr[MAX_ID_LEN+1] = "STDOUT";
- BOOLEAN polar = FALSE;
- + BOOLEAN parametric = FALSE;
- int samples = SAMPLES;
- float xsize = 1.0; /* scale factor for size */
- float ysize = 1.0; /* scale factor for size */
- ***************
- *** 66,72
- char title[MAX_LINE_LEN+1] = "";
- char xlabel[MAX_LINE_LEN+1] = "";
- char ylabel[MAX_LINE_LEN+1] = "";
- ! double xmin = -10.0,
- xmax = 10.0,
- ymin = -10.0,
- ymax = 10.0;
-
- --- 69,77 -----
- char title[MAX_LINE_LEN+1] = "";
- char xlabel[MAX_LINE_LEN+1] = "";
- char ylabel[MAX_LINE_LEN+1] = "";
- ! double tmin = -5.0,
- ! tmax = 5.0,
- ! xmin = -10.0,
- xmax = 10.0,
- ymin = -10.0,
- ymax = 10.0;
- ***************
- *** 76,81
- boff = 0.0;
- double zero = ZERO; /* zero threshold, not 0! */
-
- BOOLEAN xtics = TRUE;
- BOOLEAN ytics = TRUE;
-
-
- --- 81,89 -----
- boff = 0.0;
- double zero = ZERO; /* zero threshold, not 0! */
-
- + BOOLEAN xzeroaxis = TRUE;
- + BOOLEAN yzeroaxis = TRUE;
- +
- BOOLEAN xtics = TRUE;
- BOOLEAN ytics = TRUE;
-
- ***************
- *** 90,95
- /*** other things we need *****/
- extern char *strcpy(),*strcat();
- extern int strlen();
-
- /* input data, parsing variables */
- extern struct lexical_unit token[];
-
- --- 98,104 -----
- /*** other things we need *****/
- extern char *strcpy(),*strcat();
- extern int strlen();
- + extern FILE *popen();
-
- /* input data, parsing variables */
- extern struct lexical_unit token[];
- ***************
- *** 116,121
- static void show_style(), show_range(), show_zero();
- static void show_offsets(), show_output(), show_samples(), show_size();
- static void show_title(), show_xlabel(), show_ylabel();
- static void show_label(), show_arrow(), show_grid(), show_key();
- static void show_polar(), show_tics(), show_ticdef();
- static void show_term(), show_plot(), show_autoscale(), show_clip();
-
- --- 125,131 -----
- static void show_style(), show_range(), show_zero();
- static void show_offsets(), show_output(), show_samples(), show_size();
- static void show_title(), show_xlabel(), show_ylabel();
- + static void show_xzeroaxis(), show_yzeroaxis();
- static void show_label(), show_arrow(), show_grid(), show_key();
- static void show_polar(), show_parametric(), show_tics(), show_ticdef();
- static void show_term(), show_plot(), show_autoscale(), show_clip();
- ***************
- *** 117,123
- static void show_offsets(), show_output(), show_samples(), show_size();
- static void show_title(), show_xlabel(), show_ylabel();
- static void show_label(), show_arrow(), show_grid(), show_key();
- ! static void show_polar(), show_tics(), show_ticdef();
- static void show_term(), show_plot(), show_autoscale(), show_clip();
- static void show_format(), show_logscale(), show_variables();
-
-
- --- 127,133 -----
- static void show_title(), show_xlabel(), show_ylabel();
- static void show_xzeroaxis(), show_yzeroaxis();
- static void show_label(), show_arrow(), show_grid(), show_key();
- ! static void show_polar(), show_parametric(), show_tics(), show_ticdef();
- static void show_term(), show_plot(), show_autoscale(), show_clip();
- static void show_format(), show_logscale(), show_variables();
-
- ***************
- *** 131,136
- set_command()
- {
- static char testfile[MAX_LINE_LEN+1];
-
- c_token++;
-
-
- --- 141,149 -----
- set_command()
- {
- static char testfile[MAX_LINE_LEN+1];
- + #ifdef unix
- + static BOOLEAN pipe_open = FALSE;
- + #endif
-
- c_token++;
-
- ***************
- *** 145,151
- else if (almost_equals(c_token,"au$toscale")) {
- c_token++;
- if (END_OF_COMMAND) {
- ! autoscale_x = autoscale_y = TRUE;
- } else if (equals(c_token, "xy") || equals(c_token, "yx")) {
- autoscale_x = autoscale_y = TRUE;
- c_token++;
-
- --- 158,164 -----
- else if (almost_equals(c_token,"au$toscale")) {
- c_token++;
- if (END_OF_COMMAND) {
- ! autoscale_t = autoscale_x = autoscale_y = TRUE;
- } else if (equals(c_token, "xy") || equals(c_token, "yx")) {
- autoscale_x = autoscale_y = TRUE;
- c_token++;
- ***************
- *** 149,154
- } else if (equals(c_token, "xy") || equals(c_token, "yx")) {
- autoscale_x = autoscale_y = TRUE;
- c_token++;
- } else if (equals(c_token, "x")) {
- autoscale_x = TRUE;
- c_token++;
-
- --- 162,170 -----
- } else if (equals(c_token, "xy") || equals(c_token, "yx")) {
- autoscale_x = autoscale_y = TRUE;
- c_token++;
- + } else if (equals(c_token, "t")) {
- + autoscale_t = TRUE;
- + c_token++;
- } else if (equals(c_token, "x")) {
- autoscale_x = TRUE;
- c_token++;
- ***************
- *** 160,165
- else if (almost_equals(c_token,"noau$toscale")) {
- c_token++;
- if (END_OF_COMMAND) {
- autoscale_x = autoscale_y = FALSE;
- } else if (equals(c_token, "xy") || equals(c_token, "yx")) {
- autoscale_x = autoscale_y = FALSE;
-
- --- 176,183 -----
- else if (almost_equals(c_token,"noau$toscale")) {
- c_token++;
- if (END_OF_COMMAND) {
- + autoscale_t = autoscale_x = autoscale_y = FALSE;
- + } else if (equals(c_token, "xy") || equals(c_token, "tyx")) {
- autoscale_x = autoscale_y = FALSE;
- c_token++;
- } else if (equals(c_token, "t")) {
- ***************
- *** 161,168
- c_token++;
- if (END_OF_COMMAND) {
- autoscale_x = autoscale_y = FALSE;
- - } else if (equals(c_token, "xy") || equals(c_token, "yx")) {
- - autoscale_x = autoscale_y = FALSE;
- c_token++;
- } else if (equals(c_token, "x")) {
- autoscale_x = FALSE;
-
- --- 179,184 -----
- autoscale_t = autoscale_x = autoscale_y = FALSE;
- } else if (equals(c_token, "xy") || equals(c_token, "tyx")) {
- autoscale_x = autoscale_y = FALSE;
- c_token++;
- } else if (equals(c_token, "t")) {
- autoscale_t = FALSE;
- ***************
- *** 164,169
- } else if (equals(c_token, "xy") || equals(c_token, "yx")) {
- autoscale_x = autoscale_y = FALSE;
- c_token++;
- } else if (equals(c_token, "x")) {
- autoscale_x = FALSE;
- c_token++;
-
- --- 180,188 -----
- } else if (equals(c_token, "xy") || equals(c_token, "tyx")) {
- autoscale_x = autoscale_y = FALSE;
- c_token++;
- + } else if (equals(c_token, "t")) {
- + autoscale_t = FALSE;
- + c_token++;
- } else if (equals(c_token, "x")) {
- autoscale_x = FALSE;
- c_token++;
- ***************
- *** 212,218
- }
- else if (almost_equals(c_token,"d$ummy")) {
- c_token++;
- ! copy_str(dummy_var,c_token++);
- }
- else if (almost_equals(c_token,"fo$rmat")) {
- BOOLEAN setx, sety;
-
- --- 231,240 -----
- }
- else if (almost_equals(c_token,"d$ummy")) {
- c_token++;
- ! if (END_OF_COMMAND)
- ! int_error("expecting dummy variable name", c_token);
- ! else
- ! copy_str(dummy_var,c_token++);
- }
- else if (almost_equals(c_token,"fo$rmat")) {
- BOOLEAN setx, sety;
- ***************
- *** 312,319
- (*term_tbl[term].reset)();
- if (END_OF_COMMAND) { /* no file specified */
- UP_redirect (4);
- ! if (outfile != stdout) /* Never close stdout */
- ! (void) fclose(outfile);
- outfile = stdout; /* Don't dup... */
- term_init = FALSE;
- (void) strcpy(outstr,"STDOUT");
-
- --- 334,348 -----
- (*term_tbl[term].reset)();
- if (END_OF_COMMAND) { /* no file specified */
- UP_redirect (4);
- ! if (outfile != stdout) { /* Never close stdout */
- ! #ifdef unix
- ! if ( pipe_open ) {
- ! (void) pclose(outfile);
- ! pipe_open = FALSE;
- ! } else
- ! #endif
- ! (void) fclose(outfile);
- ! }
- outfile = stdout; /* Don't dup... */
- term_init = FALSE;
- (void) strcpy(outstr,"STDOUT");
- ***************
- *** 321,329
- int_error("expecting filename",c_token);
- else {
- quote_str(testfile,c_token);
- ! if ((f = fopen(testfile,"w")) == (FILE *)NULL) {
- ! os_error("cannot open file; output not changed",c_token);
- ! }
- if (outfile != stdout) /* Never close stdout */
- (void) fclose(outfile);
- outfile = f;
-
- --- 350,365 -----
- int_error("expecting filename",c_token);
- else {
- quote_str(testfile,c_token);
- ! #ifdef unix
- ! if ( *testfile == '|' ) {
- ! if ((f = popen(testfile+1,"w")) == (FILE *)NULL)
- ! os_error("cannot create pipe; output not changed",c_token);
- ! else
- ! pipe_open = TRUE;
- ! } else
- ! #endif
- ! if ((f = fopen(testfile,"w")) == (FILE *)NULL)
- ! os_error("cannot open file; output not changed",c_token);
- if (outfile != stdout) /* Never close stdout */
- (void) fclose(outfile);
- outfile = f;
- ***************
- *** 361,366
- c_token++;
- }
- }
- else if (almost_equals(c_token,"pol$ar")) {
- if (!polar) {
- polar = TRUE;
-
- --- 397,444 -----
- c_token++;
- }
- }
- + else if (almost_equals(c_token,"xzero$axis")) {
- + c_token++;
- + xzeroaxis = TRUE;
- + }
- + else if (almost_equals(c_token,"yzero$axis")) {
- + c_token++;
- + yzeroaxis = TRUE;
- + }
- + else if (almost_equals(c_token,"zeroa$xis")) {
- + c_token++;
- + yzeroaxis = TRUE;
- + xzeroaxis = TRUE;
- + }
- + else if (almost_equals(c_token,"noxzero$axis")) {
- + c_token++;
- + xzeroaxis = FALSE;
- + }
- + else if (almost_equals(c_token,"noyzero$axis")) {
- + c_token++;
- + yzeroaxis = FALSE;
- + }
- + else if (almost_equals(c_token,"nozero$axis")) {
- + c_token++;
- + xzeroaxis = FALSE;
- + yzeroaxis = FALSE;
- + }
- + else if (almost_equals(c_token,"par$ametric")) {
- + if (!parametric) {
- + parametric = TRUE;
- + strcpy (dummy_var, "t");
- + (void) fprintf(stderr,"\n\tdummy variable is %s\n",dummy_var);
- + }
- + c_token++;
- + }
- + else if (almost_equals(c_token,"nopar$ametric")) {
- + if (parametric) {
- + parametric = FALSE;
- + strcpy (dummy_var, "x");
- + (void) fprintf(stderr,"\n\tdummy variable is %s\n",dummy_var);
- + }
- + c_token++;
- + }
- else if (almost_equals(c_token,"pol$ar")) {
- if (!polar) {
- polar = TRUE;
- ***************
- *** 363,371
- }
- else if (almost_equals(c_token,"pol$ar")) {
- if (!polar) {
- ! polar = TRUE;
- ! xmin = 0.0;
- ! xmax = 2*Pi;
- }
- c_token++;
- }
-
- --- 441,454 -----
- }
- else if (almost_equals(c_token,"pol$ar")) {
- if (!polar) {
- ! polar = TRUE;
- ! if (parametric) {
- ! tmin = 0.0;
- ! tmax = 2*Pi;
- ! } else {
- ! xmin = 0.0;
- ! xmax = 2*Pi;
- ! }
- }
- c_token++;
- }
- ***************
- *** 371,379
- }
- else if (almost_equals(c_token,"nopo$lar")) {
- if (polar) {
- ! polar = FALSE;
- ! xmin = -10.0;
- ! xmax = 10.0;
- }
- c_token++;
- }
-
- --- 454,467 -----
- }
- else if (almost_equals(c_token,"nopo$lar")) {
- if (polar) {
- ! polar = FALSE;
- ! if (parametric) {
- ! tmin = -5.0;
- ! tmax = 5.0;
- ! } else {
- ! xmin = -10.0;
- ! xmax = 10.0;
- ! }
- }
- c_token++;
- }
- ***************
- *** 498,503
- c_token++;
- }
- }
- else if (almost_equals(c_token,"xr$ange")) {
- BOOLEAN changed;
- c_token++;
-
- --- 586,604 -----
- c_token++;
- }
- }
- + else if (almost_equals(c_token,"tr$ange")) {
- + BOOLEAN changed;
- + c_token++;
- + if (!equals(c_token,"["))
- + int_error("expecting '['",c_token);
- + c_token++;
- + changed = load_range(&tmin,&tmax);
- + if (!equals(c_token,"]"))
- + int_error("expecting ']'",c_token);
- + c_token++;
- + if (changed)
- + autoscale_t = FALSE;
- + }
- else if (almost_equals(c_token,"xr$ange")) {
- BOOLEAN changed;
- c_token++;
- ***************
- *** 533,542
- int_error(
- "valid set options: '{no}arrow', {no}autoscale', '{no}clip', data', \n\
- 'dummy', 'format', 'function', '{no}grid', '{no}key', '{no}label', \n\
- ! '{no}logscale','offsets', 'output', '{no}polar', 'samples', \n\
- ! 'size', 'terminal', 'tics', 'title', 'xlabel', 'xrange', 'xtics', \n\
- ! 'ylabel', 'yrange', 'ytics', 'zero',\n",
- ! c_token);
- }
-
- /*********** Support functions for set_command ***********/
-
- --- 634,643 -----
- int_error(
- "valid set options: '{no}arrow', {no}autoscale', '{no}clip', data', \n\
- 'dummy', 'format', 'function', '{no}grid', '{no}key', '{no}label', \n\
- ! '{no}logscale','offsets', 'output', '{no}parametric', '{no}polar', \n\
- ! 'samples', 'size', 'terminal', 'tics', 'title', 'xlabel', 'xrange', \n\
- ! 'xtics', '{no}xzeroaxis', 'ylabel', 'yrange', 'ytics', \n\
- ! '{no}yzeroaxis','zero','zeroaxis'", c_token);
- }
-
- /*********** Support functions for set_command ***********/
- ***************
- *** 1262,1267
- show_ylabel();
- c_token++;
- }
- else if (almost_equals(c_token,"la$bel")) {
- struct value a;
- int tag = 0;
-
- --- 1363,1384 -----
- show_ylabel();
- c_token++;
- }
- + else if (almost_equals(c_token,"xzero$axis")) {
- + (void) putc('\n',stderr);
- + show_xzeroaxis();
- + c_token++;
- + }
- + else if (almost_equals(c_token,"yzero$axis")) {
- + (void) putc('\n',stderr);
- + show_yzeroaxis();
- + c_token++;
- + }
- + else if (almost_equals(c_token,"zeroa$xis")) {
- + (void) putc('\n',stderr);
- + show_xzeroaxis();
- + show_yzeroaxis();
- + c_token++;
- + }
- else if (almost_equals(c_token,"la$bel")) {
- struct value a;
- int tag = 0;
- ***************
- *** 1291,1296
- show_plot();
- c_token++;
- }
- else if (almost_equals(c_token,"pol$ar")) {
- (void) putc('\n',stderr);
- show_polar();
-
- --- 1408,1418 -----
- show_plot();
- c_token++;
- }
- + else if (almost_equals(c_token,"par$ametric")) {
- + (void) putc('\n',stderr);
- + show_parametric();
- + c_token++;
- + }
- else if (almost_equals(c_token,"pol$ar")) {
- (void) putc('\n',stderr);
- show_polar();
- ***************
- *** 1324,1329
- show_term();
- c_token++;
- }
- else if (almost_equals(c_token,"v$ariables")) {
- show_variables();
- c_token++;
-
- --- 1446,1456 -----
- show_term();
- c_token++;
- }
- + else if (almost_equals(c_token,"tr$ange")) {
- + (void) putc('\n',stderr);
- + show_range('t',tmin,tmax);
- + c_token++;
- + }
- else if (almost_equals(c_token,"v$ariables")) {
- show_variables();
- c_token++;
- ***************
- *** 1363,1368
- show_logscale();
- show_offsets();
- show_output();
- show_polar();
- show_samples();
- show_size();
-
- --- 1490,1496 -----
- show_logscale();
- show_offsets();
- show_output();
- + show_parametric();
- show_polar();
- show_samples();
- show_size();
- ***************
- *** 1368,1373
- show_size();
- show_term();
- show_tics(TRUE,TRUE);
- show_range('x',xmin,xmax);
- show_range('y',ymin,ymax);
- show_title();
-
- --- 1496,1503 -----
- show_size();
- show_term();
- show_tics(TRUE,TRUE);
- + if (parametric)
- + show_range('t',tmin,tmax);
- show_range('x',xmin,xmax);
- show_range('y',ymin,ymax);
- show_title();
- ***************
- *** 1383,1391
- int_error(
- "valid show options: 'action_table', 'all', 'arrow', 'autoscale', \n\
- 'clip', 'data', 'dummy', 'format', 'function', 'grid', 'key', 'label', \n\
- ! 'logscale', 'offsets', 'output', 'plot', 'polar', 'samples', \n\
- ! 'size', 'terminal', 'tics', 'title', 'variables', 'version', \n\
- ! 'xlabel', 'xrange', 'xtics', 'ylabel', 'yrange', 'ytics', 'zero'", c_token);
- screen_ok = FALSE;
- (void) putc('\n',stderr);
- }
-
- --- 1513,1522 -----
- int_error(
- "valid show options: 'action_table', 'all', 'arrow', 'autoscale', \n\
- 'clip', 'data', 'dummy', 'format', 'function', 'grid', 'key', 'label', \n\
- ! 'logscale', 'offsets', 'output', 'plot', 'parametric','polar', \n\
- ! 'samples', 'size', 'terminal', 'tics', 'title', 'trange', 'variables', \n\
- ! 'version', 'xlabel', 'xrange', 'xtics', 'xzeroaxis', 'ylabel', \n\
- ! 'yrange', 'ytics', 'yzeroaxis', 'zero','zeroaxis'", c_token);
- screen_ok = FALSE;
- (void) putc('\n',stderr);
- }
- ***************
- *** 1464,1469
- }
-
- static void
- show_label(tag)
- int tag; /* 0 means show all */
- {
-
- --- 1595,1612 -----
- }
-
- static void
- + show_xzeroaxis()
- + {
- + fprintf(stderr,"\txzeroaxis is %s\n",(xzeroaxis)? "ON" : "OFF");
- + }
- +
- + static void
- + show_yzeroaxis()
- + {
- + fprintf(stderr,"\tyzeroaxis is %s\n",(yzeroaxis)? "ON" : "OFF");
- + }
- +
- + static void
- show_label(tag)
- int tag; /* 0 means show all */
- {
- ***************
- *** 1542,1547
- }
-
- static void
- show_polar()
- {
- fprintf(stderr,"\tpolar is %s\n",(polar)? "ON" : "OFF");
-
- --- 1685,1696 -----
- }
-
- static void
- + show_parametric()
- + {
- + fprintf(stderr,"\tparametric is %s\n",(parametric)? "ON" : "OFF");
- + }
- +
- + static void
- show_polar()
- {
- fprintf(stderr,"\tpolar is %s\n",(polar)? "ON" : "OFF");
- ***************
- *** 1625,1630
- static void
- show_autoscale()
- {
- fprintf(stderr,"\tx autoscaling is %s\n",(autoscale_x)? "ON" : "OFF");
- fprintf(stderr,"\ty autoscaling is %s\n",(autoscale_y)? "ON" : "OFF");
- }
-
- --- 1774,1781 -----
- static void
- show_autoscale()
- {
- + if (parametric)
- + fprintf(stderr,"\tt autoscaling is %s\n",(autoscale_t)? "ON" : "OFF");
- fprintf(stderr,"\tx autoscaling is %s\n",(autoscale_x)? "ON" : "OFF");
- fprintf(stderr,"\ty autoscaling is %s\n",(autoscale_y)? "ON" : "OFF");
- }
- diff -cr ./setshow.h ../gnuplot2.02/setshow.h
- *** ./setshow.h Tue Mar 27 08:59:12 1990
- --- ../gnuplot2.02/setshow.h Fri Nov 23 17:54:14 1990
- ***************
- *** 31,36
- * global variables to hold status of 'set' options
- *
- */
- extern BOOLEAN autoscale_x;
- extern BOOLEAN autoscale_y;
- extern BOOLEAN autoscale_lx;
-
- --- 31,37 -----
- * global variables to hold status of 'set' options
- *
- */
- + extern BOOLEAN autoscale_t;
- extern BOOLEAN autoscale_x;
- extern BOOLEAN autoscale_y;
- extern BOOLEAN autoscale_lt;
- ***************
- *** 33,38
- */
- extern BOOLEAN autoscale_x;
- extern BOOLEAN autoscale_y;
- extern BOOLEAN autoscale_lx;
- extern BOOLEAN autoscale_ly;
- extern BOOLEAN clip_points;
-
- --- 34,40 -----
- extern BOOLEAN autoscale_t;
- extern BOOLEAN autoscale_x;
- extern BOOLEAN autoscale_y;
- + extern BOOLEAN autoscale_lt;
- extern BOOLEAN autoscale_lx;
- extern BOOLEAN autoscale_ly;
- extern BOOLEAN clip_points;
- ***************
- *** 49,54
- extern FILE* outfile;
- extern char outstr[];
- extern BOOLEAN polar;
- extern int samples;
- extern float xsize; /* scale factor for size */
- extern float ysize; /* scale factor for size */
-
- --- 51,57 -----
- extern FILE* outfile;
- extern char outstr[];
- extern BOOLEAN polar;
- + extern BOOLEAN parametric;
- extern int samples;
- extern float xsize; /* scale factor for size */
- extern float ysize; /* scale factor for size */
- ***************
- *** 56,62
- extern char title[];
- extern char xlabel[];
- extern char ylabel[];
- ! extern double xmin, xmax, ymin, ymax;
- extern double loff, roff, toff, boff;
- extern double zero; /* zero threshold, not 0! */
-
-
- --- 59,65 -----
- extern char title[];
- extern char xlabel[];
- extern char ylabel[];
- ! extern double tmin, tmax, xmin, xmax, ymin, ymax;
- extern double loff, roff, toff, boff;
- extern double zero; /* zero threshold, not 0! */
-
- ***************
- *** 59,64
- extern double xmin, xmax, ymin, ymax;
- extern double loff, roff, toff, boff;
- extern double zero; /* zero threshold, not 0! */
-
- extern BOOLEAN xtics;
- extern BOOLEAN ytics;
-
- --- 62,70 -----
- extern double tmin, tmax, xmin, xmax, ymin, ymax;
- extern double loff, roff, toff, boff;
- extern double zero; /* zero threshold, not 0! */
- +
- + extern BOOLEAN xzeroaxis;
- + extern BOOLEAN yzeroaxis;
-
- extern BOOLEAN xtics;
- extern BOOLEAN ytics;
- diff -cr ./standard.c ../gnuplot2.02/standard.c
- *** ./standard.c Tue Sep 18 14:57:05 1990
- --- ../gnuplot2.02/standard.c Tue Dec 4 09:22:48 1990
- ***************
- *** 491,498
- push( integer(&a,(int)floor((double)a.v.int_val)));
- break;
- case CMPLX:
- ! push( complex(&a,floor(a.v.cmplx_val.real),
- ! floor(a.v.cmplx_val.imag)) );
- }
- }
-
-
- --- 491,497 -----
- push( integer(&a,(int)floor((double)a.v.int_val)));
- break;
- case CMPLX:
- ! push( integer(&a,(int)floor(a.v.cmplx_val.real)));
- }
- }
-
- ***************
- *** 507,513
- push( integer(&a,(int)ceil((double)a.v.int_val)));
- break;
- case CMPLX:
- ! push( complex(&a,ceil(a.v.cmplx_val.real), ceil(a.v.cmplx_val.imag)) );
- }
- }
-
-
- --- 506,512 -----
- push( integer(&a,(int)ceil((double)a.v.int_val)));
- break;
- case CMPLX:
- ! push( integer(&a,(int)ceil(a.v.cmplx_val.real)));
- }
- }
-
- ***************
- *** 519,525
- register double y;
- struct value a;
-
- ! y = gamma(real(pop(&a)));
- if (y > 88.0) {
- undefined = TRUE;
- push( integer(&a,0) );
-
- --- 518,524 -----
- register double y;
- struct value a;
-
- ! y = GAMMA(real(pop(&a)));
- if (y > 88.0) {
- undefined = TRUE;
- push( integer(&a,0) );
- Common subdirectories: ./term and ../gnuplot2.02/term
- diff -cr ./demo/using.demo ../gnuplot2.02/demo/using.demo
- *** ./demo/using.demo Thu Nov 29 11:08:09 1990
- --- ../gnuplot2.02/demo/using.demo Mon Nov 26 23:04:29 1990
- ***************
- *** 0
-
- --- 1,23 -----
- + #
- + # Requires data file "using.dat" from this directory,
- + # so change current working directory to this directory before running.
- + #
- + set samples 168
- + set title "Convex November 1-7 1989"
- + set label "(Weekend)" at 5,25 center
- + plot 'using.dat' using "%*s %*s %f %f" title "Logged in" with impulses,\
- + 'using.dat' using "%*s %*s %f %*f %f" t "Load average" with points,\
- + 'using.dat' using "%*s %*s %f %*f %*f %f" t "%CPU used" with lines
- + set nolabel
- + pause -1 "Hit return to continue"
- +
- + set title "Convex November 1-7 1989 Circadian"
- + set xrange[-1:24]
- + plot 'using.dat' using "%*s %f %*f %f" title "Logged in" with impulses,\
- + 'using.dat' using "%*s %f %*f %f" title "Logged in" with points
- + pause -1 "Hit return to continue"
- +
- + # undo what we have done above
- + set title
- + set samples 160
- + set xrange [-10:10]
- diff -cr ./docs/doc2ms.c ../gnuplot2.02/docs/doc2ms.c
- *** ./docs/doc2ms.c Tue Mar 27 08:59:39 1990
- --- ../gnuplot2.02/docs/doc2ms.c Thu Nov 29 10:02:07 1990
- ***************
- *** 124,130
- break;
- }
- default: {
- ! putms(line+1,b);
- break;
- }
- break;
-
- --- 124,133 -----
- break;
- }
- default: {
- ! if (line[0] == '\n')
- ! putms(line,b); /* handle totally blank line */
- ! else
- ! putms(line+1,b);
- break;
- }
- break;
- diff -cr ./docs/doc2tex.c ../gnuplot2.02/docs/doc2tex.c
- *** ./docs/doc2tex.c Thu Aug 30 16:14:59 1990
- --- ../gnuplot2.02/docs/doc2tex.c Thu Nov 29 10:02:09 1990
- ***************
- *** 107,113
- (void) fputs("\\end{verbatim}\n",b);
- verb=FALSE;
- }
- ! puttex(line+1,b);
- }
- break;
- }
-
- --- 107,116 -----
- (void) fputs("\\end{verbatim}\n",b);
- verb=FALSE;
- }
- ! if (line[0] == '\n')
- ! puttex(line,b); /* handle totally blank line */
- ! else
- ! puttex(line+1,b);
- }
- break;
- }
- diff -cr ./docs/gnuplot.1 ../gnuplot2.02/docs/gnuplot.1
- *** ./docs/gnuplot.1 Tue Sep 18 14:57:57 1990
- --- ../gnuplot2.02/docs/gnuplot.1 Mon Dec 10 10:38:09 1990
- ***************
- *** 47,53
- HP2648,
- HP75xx,
- HPGL,
- ! IBM Proprinter,
- Imagen,
- Iris 4D,
- Kermit-MS,
-
- --- 47,53 -----
- HP2648,
- HP75xx,
- HPGL,
- ! HP LaserJet II,
- Imagen,
- Iris 4D,
- Kermit-MS,
- ***************
- *** 51,56
- Imagen,
- Iris 4D,
- Kermit-MS,
- LaTeX,
- NEC CP6 pinwriter,
- PostScript,
-
- --- 51,57 -----
- Imagen,
- Iris 4D,
- Kermit-MS,
- + Kyocera laser printer,
- LaTeX,
- NEC CP6 pinwriter,
- PostScript,
- ***************
- *** 56,61
- PostScript,
- QMS QUIC,
- ReGis (VT125 and VT2xx),
- Selanar,
- Star color printer,
- Tandy DMP-130 printer,
-
- --- 57,63 -----
- PostScript,
- QMS QUIC,
- ReGis (VT125 and VT2xx),
- + SCO Xenix CGI,
- Selanar,
- Star color printer,
- Tandy DMP-130 printer,
- ***************
- *** 62,68
- Tek 401x,
- Tek 410x,
- Vectrix 384,
- ! Unix PC (ATT 3b1 or ATT 7300)
- unixplot,
- and X11.
- The PC version compiled by Microsoft C
-
- --- 64,71 -----
- Tek 401x,
- Tek 410x,
- Vectrix 384,
- ! VT like tekronix emulator,
- ! Unix PC (ATT 3b1 or ATT 7300),
- unixplot,
- and X11.
- The PC version compiled by Microsoft C
- diff -cr ./term/unixpc.trm ../gnuplot2.02/term/unixpc.trm
- *** ./term/unixpc.trm Tue Sep 18 14:59:18 1990
- --- ../gnuplot2.02/term/unixpc.trm Wed Dec 12 11:00:30 1990
- ***************
- *** 81,88
- #define uPC_XLAST (uPC_XMAX - 1)
- #define uPC_YLAST (uPC_YMAX - 1)
-
- ! #define uPC_VCHAR 11
- ! #define uPC_HCHAR 7
- #define uPC_VTIC 8
- #define uPC_HTIC 12
-
-
- --- 81,88 -----
- #define uPC_XLAST (uPC_XMAX - 1)
- #define uPC_YLAST (uPC_YMAX - 1)
-
- ! #define uPC_VCHAR FNT5X9_VCHAR
- ! #define uPC_HCHAR FNT5X9_HCHAR
- #define uPC_VTIC 8
- #define uPC_HTIC 12
-
- ***************
- *** 467,474
- unsigned int x, y;
- int c, angle;
- /*
- ! Put a character at an x,y location in the bit map (using the font5x7
- ! array. This is mostly just copied from the epson driver.
- */
- {
- int i, j, k;
-
- --- 467,474 -----
- unsigned int x, y;
- int c, angle;
- /*
- ! Put a character at an x,y location in the bit map (using the fnt5x9
- ! array. This is mostly just copied from the bitmap.c driver.
- */
- {
- int i, j, k;
- ***************
- *** 473,479
- {
- int i, j, k;
- register Scr_type mask, *a;
- ! char fc;
- unsigned int pixelon;
-
- i = c - ' ';
-
- --- 473,479 -----
- {
- int i, j, k;
- register Scr_type mask, *a;
- ! char_row fc;
- unsigned int pixelon;
-
- i = c - ' ';
- ***************
- *** 477,485
- unsigned int pixelon;
-
- i = c - ' ';
- ! for(j=0; j < 9; j++) {
- ! fc = font5x7[i][j];
- ! for (k=0; k < 5; k++) {
- pixelon = ((unsigned int)(fc))>>k & 1;
- if (pixelon) {
- switch (angle) {
-
- --- 477,485 -----
- unsigned int pixelon;
-
- i = c - ' ';
- ! for (j=0; j<FNT5X9_VBITS; j++) {
- ! fc = fnt5x9[i][j];
- ! for (k=0; k<FNT5X9_HBITS; k++) {
- pixelon = ((unsigned int)(fc))>>k & 1;
- if (pixelon) {
- switch (angle) {
-