[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

boxwidth of subplots

From: John W. Eaton
Subject: boxwidth of subplots
Date: Fri, 31 Mar 2000 03:03:22 -0600 (CST)

On 30-Mar-2000, Matz Katja (K5/ESK5) <address@hidden> 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


  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.


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]