[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/gnuplot/gnuplot/master/docs/old/gpcard.tex [Back]  [Original]

% Quick Reference Card for gnuplot 2004
%
% Format stolen shamelessly from the GNU Emacs reference card
%**start of header
\special{landscape}
\newcount\columnsperpage

% This file can be printed with 1, 2, or 3 columns per page (see below).
% Specify how many you want here.  Nothing else needs to be changed.
% For gnuplot refcard, entries are too wide for 3 columns.  Print
% 2 columns landscape

\columnsperpage=2

% Copyright (c) 1987 Free Software Foundation, Inc.

% This file is part of GNU Emacs, but was adapted for the gnuplot
% reference card because it was so nicely set up.

% This file is intended to be processed by plain TeX (TeX82).
%
% The final reference card has six columns, three on each side.
% This file can be used to produce it in any of three ways:
% 1 column per page
%    produces six separate pages, each of which needs to be reduced to 80%.
%    This gives the best resolution.
% 2 columns per page
%    produces three already-reduced pages.
%    You will still need to cut and paste.
% 3 columns per page
%    produces two pages which must be printed sideways to make a
%    ready-to-use 8.5 x 11 inch reference card.
%    For this you need a dvi device driver that can print sideways.
% Which mode to use is controlled by setting \columnsperpage above.
%
% Author of GNU Emacs Refcard:
%  Stephen Gildea
%  UUCP: mit-erl!gildea
%  Internet: gildea@erl.mit.edu
%
% Thanks to Paul Rubin, Bob Chassell, Len Tower, and Richard Mlynarik
% for their many good ideas.
%
% Person who ripped off the formatter:
%  Alex Woo
%  NASA Ames Research Center
%  Internet: woo@ames.arc.nasa.gov
%
% Modified on 9 Dec 1992 by:
%  Daniel S. Lewart
%  University of Illinois
%  Internet: d-lewart@uiuc.edu

% make \bye not \outer so that the \def\bye in the \else clause below
% can be scanned without complaint.
\def\bye{\par\vfill\supereject\end}

\def\copyrightnotice{
\vskip 1ex plus 2 fill\begingroup\small
Layout adapted from the \TeX\ source for Stephen Gildea's GNU Emacs
Reference Card (version 1.8).

PostScript is a registered trademark of Adobe Systems Incorporated.
GNU, Versatec, Imagen, Printronix, Canon, GraphOn, Visual, MicroVAX,
UIS, Tektronix, Unix, VAX, VMS, NeWS, SunView, and em4010 are all
trademarks of various companies.  We endorse none of them.

\endgroup}

\newdimen\intercolumnskip
\newbox\columna
\newbox\columnb

\def\ncolumns{\the\columnsperpage}

\message{[\ncolumns\space
  column\if 1\ncolumns\else s\fi\space per page]}

\def\scaledmag#1{ scaled \magstep #1}

% This multi-way format was designed by Stephen Gildea
% October 1986.
% modified for gnuplot refcard by Alex Woo

\if 1\ncolumns
%  \hsize 4in
  \hsize 6in
  \vsize 10in
  \voffset -.7in
  \font\titlefont=\fontname\tenbf \scaledmag3
  \font\headingfont=\fontname\tenbf \scaledmag2
  \font\smallfont=\fontname\sevenrm
  \font\smallsy=\fontname\sevensy

  \footline{\hss\folio}
  \def\makefootline{\baselineskip10pt\hsize6.5in\line{\the\footline}}
\else
%  \hsize 3.2in
  \hsize 5in
  \vsize 7.95in
  \hoffset -.75in
  \voffset -.745in
  \font\titlefont=cmbx10 \scaledmag2
  \font\headingfont=cmbx10 \scaledmag1
  \font\smallfont=cmr6
  \font\smallsy=cmsy6
  \font\eightrm=cmr8
  \font\eightbf=cmbx8
  \font\eightit=cmti8
  \font\eighttt=cmtt8
  \font\eightsy=cmsy8
  \textfont0=\eightrm
  \textfont2=\eightsy
  \def\rm{\eightrm}
  \def\bf{\eightbf}
  \def\it{\eightit}
  \def\tt{\eighttt}
  \normalbaselineskip=.8\normalbaselineskip
  \normallineskip=.8\normallineskip
  \normallineskiplimit=.8\normallineskiplimit
  \normalbaselines\rm           %make definitions take effect

  \if 2\ncolumns
    \let\maxcolumn=b
    \footline{\hss\rm\folio\hss}
    \def\makefootline{\vskip 2in \hsize=6.86in\line{\the\footline}}
  \else \if 3\ncolumns
    \let\maxcolumn=c
    \nopagenumbers
  \else
    \errhelp{You must set \columnsperpage equal to 1, 2, or 3.}
    \errmessage{Illegal number of columns per page}
  \fi\fi

  \intercolumnskip=.46in
  \def\abc{a}
  \output={%
      % This next line is useful when designing the layout.
      %\immediate\write16{Column \folio\abc\space starts with \firstmark}
      \if \maxcolumn\abc \multicolumnformat \global\def\abc{a}
      \else\if a\abc
        \global\setbox\columna\columnbox \global\def\abc{b}
        %% in case we never use \columnb (two-column mode)
        \global\setbox\columnb\hbox to -\intercolumnskip{}
      \else
        \global\setbox\columnb\columnbox \global\def\abc{c}\fi\fi}
  \def\multicolumnformat{\shipout\vbox{\makeheadline
      \hbox{\box\columna\hskip\intercolumnskip
        \box\columnb\hskip\intercolumnskip\columnbox}
      \makefootline}\advancepageno}
  \def\columnbox{\leftline{\pagebody}}

  \def\bye{\par\vfill\supereject
    \if a\abc \else\null\vfill\eject\fi
    \if a\abc \else\null\vfill\eject\fi
    \end}
\fi

% we won't be using math mode much, so redefine some of the characters
% we might want to talk about
\catcode`\^=12
\catcode`\_=12

\chardef\\=`\\
\chardef\{=`\{
\chardef\}=`\}

\hyphenation{mini-buf-fer}

\parindent 0pt
\parskip 1ex plus .5ex minus .5ex

\def\small{\smallfont\textfont2=\smallsy\baselineskip=.8\baselineskip}

\outer\def\newcolumn{\vfill\eject}

\outer\def\title#1{{\titlefont\centerline{#1}}\vskip 1ex plus .5ex}

\outer\def\section#1{\par\filbreak
  \vskip 3ex plus 2ex minus 2ex {\headingfont #1}\mark{#1}%
  \vskip 2ex plus 1ex minus 1.5ex}

\newdimen\keyindent

\def\beginindentedkeys{\keyindent=1em}
\def\endindentedkeys{\keyindent=0em}
\endindentedkeys

\def\paralign{\vskip\parskip\halign}

\def\{$\langle${\rm #1}$\rangle$}

\def\kbd#1{{\tt#1}\null}        %\null so not an abbrev even if period follows

\def\beginexample{\par\leavevmode\begingroup
  \obeylines\obeyspaces\parskip0pt\tt}
{\obeyspaces\global\let =\ }
\def\endexample{\endgroup}


\def\key#1#2{\leavevmode\hbox to \hsize{\vtop
%  {\hsize=.75\hsize\rightskip=1em
  {\hsize=.5\hsize\rightskip=1em
  \hskip\keyindent\relax#1}\kbd{#2}\hfil}}

\newbox\metaxbox
\setbox\metaxbox\hbox{\kbd{M-x }}
\newdimen\metaxwidth
\metaxwidth=\wd\metaxbox

\def\metax#1#2{\leavevmode\hbox to \hsize{\hbox to .75\hsize
  {\hskip\keyindent\relax#1\hfil}%
  \hskip -\metaxwidth minus 1fil
  \kbd{#2}\hfil}}

\def\threecol#1#2#3{\hskip\keyindent\relax#1\hfil&\kbd{#2}\quad
  &\kbd{#3}\quad\cr}

%**end of header


\title{gnuplot Quick Reference}

\centerline{(Copyright(c) Alex Woo 1992 June 1)}
\centerline{Updated by Hans-Bernhard Br\"o{}ker, April 2004}

\section{Starting gnuplot}

\key{to enter gnuplot}{gnuplot}
\key{to enter batch gnuplot}{gnuplot macro_file}
\key{to pipe commands to gnuplot}{application | gnuplot}

see below for  environment variables you might want to change
before entering gnuplot.

\section{Exiting gnuplot}

\key{exit gnuplot}{quit}

All gnuplot commands can be abbreviated to the first few
unique letters, usually three characters.  This reference uses
the complete name for clarity.

\section{Getting Help}

\key{introductory help} {help plot}
\key{help on a topic}{help }
\key{list of all help available}{help or ?}
\key{show current environment}{show all}
\section{Command-line Editing}

The UNIX, MS-DOS and VMS versions of gnuplot support command-line
editing and a command history.  EMACS style editing is supported.

\beginindentedkeys

Line Editing:

\key{move back a single character}{^ B}
\key{move forward a single character}{^ F}
\key{moves to the beginning of the line}{^ A}
\key{moves to the end of the line}{^ E}
\key{delete the previous character} {^ H and DEL }
\key{deletes the current character}  {^ D}
\key{deletes to the end of line}{^ K}
\key{redraws line in case it gets trashed}{ ^ L,^ R}
\key{deletes the entire line}{ ^ U}
\key{deletes the last word}{ ^ W}
\endindentedkeys
\beginindentedkeys

History:

\key{moves back through history}{ ^ P }
\key{moves forward through history}{ ^ N }
\endindentedkeys

The following arrow keys may be used on most PC versions if READLINE
is used.

\beginindentedkeys
IBM PC Arrow Keys:

\key{Left  Arrow}{same as ^ B}
\key{Right Arrow}{same as ^ F}
\key{Ctrl Left  Arrow}{same as ^ A}
\key{Ctrl Right Arrow}{same as ^ E}
\key{Up    Arrow}{same as ^ P}
\key{Down  Arrow}{same as ^ N}
\endindentedkeys


\section{Graphics Devices}

All screen graphics devices are specified by names and options.  This
information can be read from a startup file (.gnuplot in UNIX).  If
you change the graphics device, you must replot with the \kbd{replot}
command or recreate it repeating the \kbd{load} of the script that
created it.

\key{get a list of valid devices }{set terminal [options]}

\beginindentedkeys

Graphics Terminals:

\key{Mac OS X}                                  {set term aqua}
\key{AED 512 Terminal}                          {set term aed512}
\key{AED 767 Terminal}                          {set term aed767}
\key{BBN Bitgraph Terminal}                     {set term bitgraph}
\key{MS-DOS Kermit Tek4010 term - color}        {set term kc_tek40xx}
\key{MS-DOS Kermit Tek4010 term - mono}         {set term km_tek40xx}
\key{NeXTstep window system}                    {set term next}
\key{OS/2 Presentation Manager}                 {set term pm}
\key{REGIS graphics language}                   {set term regis}
\key{Selanar Tek Terminal}                      {set term selanar}
\key{SunView window system}                     {set term sun}
\key{Tektronix 4106, 4107, 4109 \& 420X }       {set term tek4OD10x}
\key{Tektronix 4010; most TEK emulators}        {set term tek40xx}
\key{VAX UIS window system}                     {set term VMS}
\key{VT-like tek40xx terminal emulator}         {set term vttek}
\key{UNIX plotting (not always supplied)}       {set term unixplot}
\key{AT\&T 3b1 or 7300 UNIXPC}                  {set term unixpc}
\key{MS Windows}                                {set term windows}
\key{X11 display terminal}                      {set term x11}

\endindentedkeys

\beginindentedkeys

Turbo C PC Graphics Modes:

\key{Hercules}{set term hercules}
\key{Color Graphics Adaptor}{set term cga}
\key{Monochrome CGA}{set term mcga}
\key{Extended Graphics Adaptor}{set term ega}
\key{VGA} {set term vga}
\key{Monochrome VGA} {set term vgamono}
\key{Super VGA - requires SVGA driver}{set term svga}
\key{AT\&T 6300 Micro}{set term att}

\endindentedkeys

\beginindentedkeys

Hardcopy Devices:

\key{Unknown - not a plotting device} {set term unknown}
\key{Dump ASCII table of X Y [Z] values}{set term table}
\key{printer or glass dumb terminal}                    {set term dumb}
\key{Roland DXY800A plotter}                            {set term dxy800a}

Dot Matrix Printers

\key{Epson-style 60-dot per inch printers}              {set term epson_60dpi}
\key{Epson LX-800, Star NL-10 }{set term epson_lx800}
\key{NX-1000, PROPRINTER }{set term epson_lx800}
\key{NEC printer CP6, Epson LQ-800 }
                        {set term nec_cp6 [monochrome color draft]}
\key{Star Color Printer}                                {set term starc}
\key{Tandy DMP-130  60-dot per inch }   {set term tandy_60dpi}
\key{Vectrix 384 \& Tandy color printer}                {set term vx384}

Laser Printers

\key{Talaris EXCL language}{set term excl}
\key{Imagen laser printer}                              {set term imagen}
\key{LN03-Plus in EGM mode}                     {set term ln03}
\key{PostScript graphics language }
                {set term post [mode color `font' size]}
\key{CorelDraw EPS}
                {set term corel [mode color `font' size]}
\key{Prescribe - for the Kyocera Laser Printer} {set term prescribe}
\key{Kyocera Laser Printer with Courier font}           {set term kyo}
\key{QMS/QUIC Laser  (also Talaris 1200 )}{set term qms}

Metafiles

\key{AutoCAD DXF (120x80 default)}                      {set term dxf}
\key{FIG graphics language: SunView or X }{set term fig}
\key{FIG graphics language:  Large Graph}{set term bfig}
\key{Frame Maker MIF 3.0}
                {set term mif [pentype curvetype help]}
\key{Portable bitmap}                                   {set term pbm [fontsize color]}
\key{TGIF language}                             {set term tgif}

HP Devices

\key{HP2623A and maybe others}                  {set term hp2623A}
\key{HP2648 and HP2647}                         {set term hp2648}
\key{HP7580, \& probably other HPs (4 pens)}            {set term hp7580B}
\key{HP7475 \&  lots of others (6 pens)}        {set term hpgl}
\key{HP Laserjet series II \& clones}   {set term hpljii [75 100 150 300]}
\key{HP DeskJet 500} {set term hpdj [75 100 150 300]}
\key{HP PaintJet \& HP3630 }
                                {set term hppj [FNT5X9 FNT9X17 FNT13x25]}
\key{HP laserjet III ( HPGL plot vectors)}
                {set term pcl5 [mode font fontsize ]}

TeX picture environments

\key{LaTeX picture environment}                 {set term latex}
\key{EEPIC -- extended LaTeX picture }  {set term eepic}
\key{LaTeX picture  with emTeX specials}        {set term emtex}
\key{PSTricks macros for TeX or LaTeX}  {set term pstricks}
\key{TPIC specials for TeX or LaTeX}    {set term tpic}
\key{MetaFont font generation input}                    {set term mf}

Saving and restoring terminal

\key{restore default or pushed terminal}  {set term pop}
\key{save (push) current terminal}        {set term push}

Commands associated to interactive terminals

\key{change mouse settings}     {set mouse}
\key{change hotkey bindings}    {bind}

\endindentedkeys


\section{Files}

\key{{\bf plot} a data file}{plot `fspec'}
\key{{\bf load} in a macro file}{load `fspec'}
\key{{\bf save} command buffer to a macro file}{save `fspec'}
\key{{\bf save settings} for later reuse}{save set `fpec'}

\section{PLOT \& SPLOT commands}


{\bf plot} and {\bf splot} are the primary commands
{\bf plot} is used to plot 2-d
functions and data, while {\bf splot} plots 3-d surfaces and data.

Syntax:

        plot $\{$ranges$\}$ $ \{$title$\} \{$style$\}$
                    $\{,  \{$title$\} \{$style$\}...\}$

        splot $\{$ranges$\}  \{$title$\} \{$style$\}$
                    $\{,  \{$title$\} \{$style$\}...\}$

where $$ is either a mathematical expression, the name of a
data file enclosed in quotes, or a pair ({\bf plot}) or triple ({\bf splot})
of mathematical expressions in the case of parametric functions.
User-defined functions and variables may also be defined here.
Examples will be given below.

\section{Plotting Data}
Discrete data contained in a file can displayed by specifying the
name of the data file (enclosed in quotes) on the {\bf plot} or {\bf splot}
command line. Data files should contain one data point per line.
Lines beginning with \# (or ! on VMS) will be treated as comments
and ignored. For {\bf plot}s, each data point represents an (x,y)
pair. For {\bf splot}s, each point is an (x,y,z) triple. For {\bf plot}s with
error bars (see {\bf plot errorbars}), each data point is either
(x,y,ydelta), (x,y,ylow,yhigh), (x,y,xlow,xhigh), (x,y,xdelta,ydelta), or
(x,y,xlow,xhigh,ylow,yhigh). In all cases, the numbers on each
line of a data file must be separated by blank space. This blank
space divides each line into columns.

For {\bf plot}s the x value may be omitted, and for {\bf splot}s the x
and y values may be omitted. In either case the omitted values are
assigned the current coordinate number. Coordinate numbers start at 0
and are incremented for each data point read.

\section{Surface Plotting}
Implicitly, there are two types of 3-d datafiles. If all the isolines
are of the same length, the data is assumed to be a grid data, i.e.,
the data has a grid topology. Cross isolines in the other parametric
direction (the ith cross isoline passes thru the ith point of all the
provided isolines) will also be drawn for grid data. (Note contouring
is available for grid data only.) If all the isolines are not of the
same length, no cross isolines will be drawn and contouring that data
is impossible.

\section{Using Pipes}

On some computer systems with a popen function (Unix, plus some
others), the datafile can be piped through a shell command by starting
the file name with a '$

Web Proxy Viewer  |  New URL  |  Original Page