ascpect

Robert T. Short octave at phaselockedsystems.com
Mon Jul 27 16:30:26 CDT 2009


Peter Plessas wrote:
> Bob, found your thread on the octave mailing list!
>
> How exactly did you set the monitor aspect ratio with "set ratio" to 
> plot perfect circles? Did you do that in octave or in gnuplot? I have 
> the same problem over here and spent already a day on it. :-)
>
> thanks for any pointers!
>
> Peter
>
>
Hi Peter,

I am posting this to the octave developer's list as well since someone 
else might have the same problem.

Nasty little problem.  I need to file a gnuplot bug report but haven't 
done so yet.  Their aspect computation seems fundamentally flawed.

On an X11 terminal, the aspect ratio is dependent not just on the 
graphics terminal itself but on the size of the window gnuplot opens.  
The video driver on my laptop returns the wrong values so it is even worse.

 From octave, do the following

set(gca, 'dataAspectRatio', [1 somenumber 1])

For "square", somenumber should be 1, but for some terminals it doesn't 
work.

Use something like 1.1 for somenumber and then play until you get the 
aspect ratio you want.  Takes a few tries, but isn't really hard.

The properties can be found under "Plotting" in the info pages.

Bob





More information about the Octave-maintainers mailing list