From help-octave-request at bevo dot che dot wisc dot edu Fri Mar 31 03:03:10 2000 Subject: boxwidth of subplots From: "John W. Eaton" To: "Matz Katja (K5/ESK5)" Cc: "'help-octave at bevo dot che dot wisc dot edu'" Date: Fri, 31 Mar 2000 03:03:22 -0600 (CST) On 30-Mar-2000, Matz Katja (K5/ESK5) wrote: | Hallo, | | thank you very much for your quick help. For the moment I've got one more | question, concerning the boxwidth control for subplots with axis variables | of different dimensions. Is it possible to have geometrically (on the paper) | the same x-axis for the subplots e.g. easier to compare values at same times | vertically on the paper ? | | for instance: | | hold on; | z = (0:0.1:10)'; | data = [z, sin(z), cos(z)]; | data1 = [z, sin(z)/1000, cos(z)/1000]; | label = [";sin;"; ";cos;"]; | subplot(2,1,1); | clearplot; | for i=1:2 plot (z, data(:,i+1), label(i,:)); endfor; | subplot(2,1,2); | clearplot; | for i=1:2 plot (z, data1(:,i+1), label(i,:)); endfor; | hold off; Sure, use axis() to do it for each plot. But if you are asking how you can tell Octave (or really, gnuplot) to set the axis for the second plot to the same axis that was automatically chosen for the first or use autoscaling, but set both axes the same (i.e., use the max and min values of all subplots as the limits for all axes) then I don't think there is a convenient way to do it given the current limitations of gnuplot. jwe ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------