Mercurial > hg > octave-nkf
comparison scripts/plot/axis.m @ 5775:ace8d8d26933
[project @ 2006-04-24 19:13:06 by jwe]
author | jwe |
---|---|
date | Mon, 24 Apr 2006 19:13:11 +0000 |
parents | 0f6a0a85a857 |
children | 44c91c5dfe1d |
comparison
equal
deleted
inserted
replaced
5774:e7af222e98b0 | 5775:ace8d8d26933 |
---|---|
147 __gnuplot_raw__ ("set yrange [] noreverse;\n"); | 147 __gnuplot_raw__ ("set yrange [] noreverse;\n"); |
148 | 148 |
149 ## aspect ratio | 149 ## aspect ratio |
150 elseif (strcmp (ax, "image")) | 150 elseif (strcmp (ax, "image")) |
151 __gnuplot_raw__ ("set size ratio -1;\n"); | 151 __gnuplot_raw__ ("set size ratio -1;\n"); |
152 __gnuplot_raw__ ("set autoscale;\n"); ## XXX FIXME XXX should be the same as "tight" | 152 __gnuplot_raw__ ("set autoscale;\n"); ## FIXME should be the same as "tight" |
153 elseif (strcmp (ax, "equal")) | 153 elseif (strcmp (ax, "equal")) |
154 __gnuplot_raw__ ("set size ratio -1;\n"); | 154 __gnuplot_raw__ ("set size ratio -1;\n"); |
155 elseif (strcmp (ax, "square")) | 155 elseif (strcmp (ax, "square")) |
156 __gnuplot_raw__ ("set size ratio 1;\n"); | 156 __gnuplot_raw__ ("set size ratio 1;\n"); |
157 elseif (strcmp (ax, "normal")) | 157 elseif (strcmp (ax, "normal")) |
168 elseif (strcmp (ax, "manual")) | 168 elseif (strcmp (ax, "manual")) |
169 ## fixes the axis limits, like axis(axis) should; | 169 ## fixes the axis limits, like axis(axis) should; |
170 __gnuplot_raw__ ("set xrange [] writeback;\n"); | 170 __gnuplot_raw__ ("set xrange [] writeback;\n"); |
171 __gnuplot_raw__ ("set yrange [] writeback;\n"); | 171 __gnuplot_raw__ ("set yrange [] writeback;\n"); |
172 __gnuplot_raw__ ("set zrange [] writeback;\n"); | 172 __gnuplot_raw__ ("set zrange [] writeback;\n"); |
173 ## XXX FIXME XXX if writeback were set in plot, no need to replot here. | 173 ## FIXME if writeback were set in plot, no need to replot here. |
174 ## No semicolon (see replot.m). | 174 ## No semicolon (see replot.m). |
175 replot (); | 175 replot (); |
176 __gnuplot_raw__ ("set noautoscale x;\n"); | 176 __gnuplot_raw__ ("set noautoscale x;\n"); |
177 __gnuplot_raw__ ("set noautoscale y;\n"); | 177 __gnuplot_raw__ ("set noautoscale y;\n"); |
178 __gnuplot_raw__ ("set noautoscale z;\n"); | 178 __gnuplot_raw__ ("set noautoscale z;\n"); |
179 elseif (strcmp (ax, "tight")) | 179 elseif (strcmp (ax, "tight")) |
180 ## XXX FIXME XXX if tight, plot must set ranges to limits of the | 180 ## FIXME if tight, plot must set ranges to limits of the |
181 ## all the data on the current plot, even if from a previous call. | 181 ## all the data on the current plot, even if from a previous call. |
182 ## Instead, just let gnuplot do as it likes. | 182 ## Instead, just let gnuplot do as it likes. |
183 __gnuplot_raw__ ("set autoscale;\n"); | 183 __gnuplot_raw__ ("set autoscale;\n"); |
184 | 184 |
185 | 185 |