Mercurial > hg > octave-nkf
comparison scripts/plot/subplot.m @ 2311:2b5788792cad
[project @ 1996-07-11 20:18:38 by jwe]
author | jwe |
---|---|
date | Thu, 11 Jul 1996 20:18:38 +0000 |
parents | 5cffc4b8de57 |
children | 204cc7db6f4a |
comparison
equal
deleted
inserted
replaced
2310:e2a8f216373d | 2311:2b5788792cad |
---|---|
15 ### You should have received a copy of the GNU General Public License | 15 ### You should have received a copy of the GNU General Public License |
16 ### along with Octave; see the file COPYING. If not, write to the Free | 16 ### along with Octave; see the file COPYING. If not, write to the Free |
17 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA | 17 ### Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
18 ### 02111-1307, USA. | 18 ### 02111-1307, USA. |
19 | 19 |
20 ## usage: subplot (rows, columns, index) | |
21 ## subplot (rcn) | |
22 ## | |
23 ## NOTE: this will work only with gnuplot installed with | |
24 ## multiplot patch (or version 3.6 beta) | |
25 ## | |
26 ## Sets gnuplot in multiplot mode and plots in location | |
27 ## given by index (there are columns X rows subwindows) | |
28 ## | |
29 ## Input: | |
30 ## | |
31 ## rows : number of rows in subplot grid | |
32 ## columns: number of columns in subplot grid | |
33 ## index : index of subplot where to make the next plot | |
34 ## | |
35 ## If only one arg, then it (crn) has to be three digit value | |
36 ## specifying the location in digit 1 (rows) and 2 (columns) and digit | |
37 ## 3 is the plot index | |
38 ## | |
39 ## The plot index runs row-wise,i.e., first all the columns in a row | |
40 ## are filled and then the next row is filled | |
41 ## | |
42 ## For example, plot with 4 X 2 grid, will have plot indices running as | |
43 ## follows: | |
44 ## | |
45 ## ----------------------------------- | |
46 ## | | | | | | |
47 ## | 1 | 2 | 3 | 4 | | |
48 ## | | | | | | |
49 ## ----------------------------------- | |
50 ## | | | | | | |
51 ## | 5 | 6 | 7 | 8 | | |
52 ## | | | | | | |
53 ## ----------------------------------- | |
54 ## | |
55 | |
20 function subplot (rows, columns, index) | 56 function subplot (rows, columns, index) |
21 | |
22 ## usage: subplot (rows, columns, index) | |
23 ## subplot (rcn) | |
24 ## | |
25 ## NOTE: this will work only with gnuplot installed with | |
26 ## multiplot patch (or version 3.6 beta) | |
27 ## | |
28 ## Sets gnuplot in multiplot mode and plots in location | |
29 ## given by index (there are columns X rows subwindows) | |
30 ## | |
31 ## Input: | |
32 ## | |
33 ## rows : number of rows in subplot grid | |
34 ## columns: number of columns in subplot grid | |
35 ## index : index of subplot where to make the next plot | |
36 ## | |
37 ## If only one arg, then it (crn) has to be three digit value | |
38 ## specifying the location in digit 1 (rows) and 2 (columns) and digit | |
39 ## 3 is the plot index | |
40 ## | |
41 ## The plot index runs row-wise,i.e., first all the columns in a row | |
42 ## are filled and then the next row is filled | |
43 ## | |
44 ## For example, plot with 4 X 2 grid, will have plot indices running as | |
45 ## follows: | |
46 ## | |
47 ## ----------------------------------- | |
48 ## | | | | | | |
49 ## | 1 | 2 | 3 | 4 | | |
50 ## | | | | | | |
51 ## ----------------------------------- | |
52 ## | | | | | | |
53 ## | 5 | 6 | 7 | 8 | | |
54 ## | | | | | | |
55 ## ----------------------------------- | |
56 ## | |
57 | 57 |
58 ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU | 58 ## Written by Vinayak Dutt, Dutt.Vinayak@mayo.EDU |
59 | 59 |
60 if (! gnuplot_has_multiplot) | 60 if (! gnuplot_has_multiplot) |
61 error ("subplot: gnuplot does not appear to support this feature"); | 61 error ("subplot: gnuplot does not appear to support this feature"); |