octave-maintainers
[Top][All Lists]
Advanced

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

Re: ascpect


From: Robert T. Short
Subject: Re: ascpect
Date: Mon, 27 Jul 2009 14:30:26 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.22) Gecko/20090606 SeaMonkey/1.1.17

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





reply via email to

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