comparison doc/refcard/refcard.tex @ 6548:ecc8d30fa288

[project @ 2007-04-20 05:31:41 by jwe]
author jwe
date Fri, 20 Apr 2007 05:31:41 +0000
parents a441d6681364
children 673686daec87
comparison
equal deleted inserted replaced
6547:4fb053f24fd6 6548:ecc8d30fa288
553 Global variables may be accessed inside the body of a function 553 Global variables may be accessed inside the body of a function
554 without having to be passed in the function parameter list provided 554 without having to be passed in the function parameter list provided
555 they are also declared global within the function.}\span\cr 555 they are also declared global within the function.}\span\cr
556 \endsec 556 \endsec
557 557
558 \sec Selected Built-in Variables; 558 \sec Selected Built-in Functions;
559 EDITOR&editor to use with {\tt edit\_history}\cr 559 EDITOR&editor to use with {\tt edit\_history}\cr
560 Inf, NaN&IEEE infinity, NaN\cr 560 Inf, NaN&IEEE infinity, NaN\cr
561 PAGER&program to use to paginate output\cr 561 PAGER&program to use to paginate output\cr
562 ans&last result not explicitly assigned\cr 562 ans&last result not explicitly assigned\cr
563 eps&machine precision\cr 563 eps&machine precision\cr
564 pi&$\pi$\cr 564 pi&$\pi$\cr
565 realmax&maximum representable value\cr 565 realmax&maximum representable value\cr
566 realmin&minimum representable value\cr 566 realmin&minimum representable value\cr
567 \endsec
568 \vskip -\secskip
569 \vskip -2\lskip
570 \altsec \null;
571 automatic\_replot&automatically redraw plots\cr
572 do\_fortran\_indexing&Fortran-style indexing of matrices\cr
573 implicit\_str\_to\_num\_ok&allow strings to become numbers\cr
574 output\_max\_field\_width&maximum numeric field width\cr
575 output\_precision&min significant figures displayed\cr
576 page\_screen\_output&control whether output is paged\cr
577 prefer\_column\_vectors&create column vectors by default\cr
578 resize\_on\_range\_error&automatic resizing of matrices\cr
579 save\_precision&digits stored by {\tt save} command\cr
580 silent\_functions&suppress output from functions\cr
581 warn\_divide\_by\_zero&suppress divide by zero errors\cr
582 \endsec
583 \vskip -\secskip
584 \vskip -2\lskip
585 \widesec \null;
586 commas\_in\_literal\_matrix\vskip\lskip\cr
587 \omit\hfill\vbox{\hsize=\idnwid\rm
588 control handling of spaces in matrices\vskip3\lskip}\cr
589 ignore\_function\_time\_stamp\cr
590 \omit\hfill\vbox{\hsize=\idnwid\rm
591 ignore changes in function files during session\vskip3\lskip}\cr
592 ok\_to\_lose\_imaginary\_part\cr
593 \omit\hfill\vbox{\hsize=\idnwid\rm
594 allow complex to real conversion\vskip3\lskip}\cr
595 prefer\_zero\_one\_indexing\cr
596 \omit\hfill\vbox{\hsize=\idnwid\rm
597 if ambiguous, prefer 0-1 style indexing\vskip3\lskip}\cr
598 \endsec 567 \endsec
599 568
600 \vfill\eject 569 \vfill\eject
601 570
602 \sec Arithmetic and Increment Operators; 571 \sec Arithmetic and Increment Operators;
878 var ({\it a})&variance\cr 847 var ({\it a})&variance\cr
879 \endsec 848 \endsec
880 849
881 \vfill\eject 850 \vfill\eject
882 851
883 \sec Basic Plotting; 852 \sec Plotting Functions;
884 \omit \vbox{\tt
885 gplot \opt{{\it ranges}} {\it expr} \opt{{\it using}}
886 \opt{{\it title}} \opt{{\it style}}\hfill{\rm 2D plotting}
887 \par\vskip \lskip}\span\cr
888 \omit \vbox{\tt
889 gsplot \opt{{\it ranges}} {\it expr} \opt{{\it using}}
890 \opt{{\it title}} \opt{{\it style}}\hfill{\rm 3D plotting}
891 \par\vskip \lskip}\span\cr
892 \quad{\it ranges}&specify data ranges\cr
893 \quad{\it expr}&expression to plot\cr
894 \quad{\it using}&specify columns to plot\cr
895 \quad{\it title}&specify line title for legend\cr
896 \quad{\it style}&specify line style\cr
897 \omit \vbox{\rm\vskip0.85ex
898 If {\it ranges\/} are supplied, they must come before the expression
899 to plot. The {\it using\/}, {\it title\/}, and {\it style\/}
900 options may appear in any order after {\it expr\/}. Multiple
901 expressions may be plotted with a single command by separating them
902 with commas.\vskip1ex}\span\cr
903 set {\it options}&set plotting options\cr
904 show {\it options}&show plotting options\cr
905 replot&redisplay current plot\cr
906 closeplot&close stream to {\tt gnuplot} process\cr
907 purge\_tmp\_files&clean up temporary plotting files\cr
908 automatic\_replot&built-in variable\cr
909 \endsec
910
911 \sec Other Plotting Functions;
912 plot ({\it args})&2D plot with linear axes\cr 853 plot ({\it args})&2D plot with linear axes\cr
854 plot3 ({\it args})&3D plot with linear axes\cr
855 line ({\it args})&2D or 3D line\cr
913 semilogx ({\it args})&2D plot with logarithmic x-axis\cr 856 semilogx ({\it args})&2D plot with logarithmic x-axis\cr
914 semilogy ({\it args})&2D plot with logarithmic y-axis\cr 857 semilogy ({\it args})&2D plot with logarithmic y-axis\cr
915 loglog ({\it args})&2D plot with logarithmic axes\cr 858 loglog ({\it args})&2D plot with logarithmic axes\cr
916 bar ({\it args})&plot bar charts\cr 859 bar ({\it args})&plot bar charts\cr
917 stairs ({\it x}, {\it y})&plot stairsteps\cr 860 stairs ({\it x}, {\it y})&plot stairsteps\cr
918 hist ({\it y}, {\it x})&plot histograms\cr\cr 861 hist ({\it y}, {\it x})&plot histograms\cr\cr
919 title ({\it string})&set plot title\cr\cr 862 title ({\it string})&set plot title\cr\cr
920 axis ({\it limits})&set axis ranges\cr 863 axis ({\it limits})&set axis ranges\cr
921 xlabel ({\it string})&set x-axis label\cr 864 xlabel ({\it string})&set x-axis label\cr
922 ylabel ({\it string})&set y-axis label\cr 865 ylabel ({\it string})&set y-axis label\cr
866 zlabel ({\it string})&set z-axis label\cr
867 legend ({\it string})&set label in plot key\cr
923 grid \opt{on$|$off}&set grid state\cr 868 grid \opt{on$|$off}&set grid state\cr
924 hold \opt{on$|$off}&set hold state\cr 869 hold \opt{on$|$off}&set hold state\cr
925 ishold&return 1 if hold is on, 0 otherwise\cr\cr 870 ishold&return 1 if hold is on, 0 otherwise\cr\cr
926 mesh ({\it x}, {\it y}, {\it z})&plot 3D surface\cr 871 mesh ({\it x}, {\it y}, {\it z})&plot 3D surface\cr
927 meshdom ({\it x}, {\it y})&create mesh coordinate matrices\cr 872 meshdom ({\it x}, {\it y})&create mesh coordinate matrices\cr
930 \vskip 0pt plus 2fill 875 \vskip 0pt plus 2fill
931 \hrule width \hsize 876 \hrule width \hsize
932 \par\vskip10pt 877 \par\vskip10pt
933 {\smrm\parskip=6pt 878 {\smrm\parskip=6pt
934 Edition \refcardedition for Octave Version \octaveversion. Copyright 879 Edition \refcardedition for Octave Version \octaveversion. Copyright
935 1996, John W. Eaton 880 1996, 2007, John W. Eaton
936 (jwe@che.utexas.edu). The author assumes no responsibility for any 881 (jwe@bevo.che.wisc.edu). The author assumes no responsibility for any
937 errors on this card. 882 errors on this card.
938 883
939 This card may be freely distributed under the terms of the GNU 884 This card may be freely distributed under the terms of the GNU
940 General Public License. 885 General Public License.
941 886