[Top][All Lists]

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

Re: Matlab ginput

From: John W. Eaton
Subject: Re: Matlab ginput
Date: Mon, 2 Dec 1996 15:51:29 -0600

On  2-Dec-1996, Mario Storti <address@hidden> wrote:

: BTW, is there a way to know the aspect ratio of the gnuplot window?

I don't know if gnuplot can return this information.  Even if it can,
it is not currently possible to have it returned in a variable in Octave.

: I want  to have the same scale  factor in both  axis, since I'm plotting
: finite element meshes, and similar things. In Matlab 3.5 for DOS there
: was the axis('square') feature.

With some terminal drivers, the commands

  set size square


  set size ratio 1

will set the plot axes to be square, though the scales are not
necessarily forced to be the same, so circles may still be displayed
as ellipses.  For example,

  gnuplot> set size ratio 1
  gnuplot> set parametric

          dummy variable is t for curves, u/v for surfaces
  gnuplot> plot sin(t), cos(t)

shows a circle on my X display, but
  gnuplot> set xrange [-2:2]
  gnuplot> replot

turns it into an ellipse.

This works with gnuplot 3.6beta, anyway.  I didn't check earlier


reply via email to

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