Subject: On Windows Maxima plot window isn't square
From: Adam
Date: Fri, 22 Feb 2013 15:59:52 +0100
On 22.02.2013 13:18, Jaime Villate wrote:
> On 02/21/2013 10:07 PM, Henry Baker wrote:
>> When I run plot2d on the Maxima shown below, the plot window doesn't
>> come up as square, so circles come out as ellipses.
>>
>> Note that the plot is fine as far as Maxima & plot2d is concerned; the
>> problem is that the aspect ratio of the window it's being drawn in is
>> off.
>>
>> If I "resize" the window using the mouse to make it square, then the
>> plot looks fine.
>>
>> Is there any way of initializing the plot window so it comes up square
>> by default?
> Hi,
> you forgot to show us your plot2d command, but here is an example:
>
> plot2d([sqrt(9-x^2),
> -sqrt(9-x^2)],[x,-3,3],[legend,false],[gnuplot_preamble,"set size ratio
> 1"]);
>
> (it works fine in the wxt gnuplot terminal in Ubuntu, but it might fail
> in other gnuplot terminals)
>
> Another method:
>
> plot2d([sqrt(9-x^2),
> -sqrt(9-x^2)],[x,-3,3],[legend,false],[plot_format,xmaxima]);
>
> Regards,
> Jaime
square is a synonym for ratio 1.
so it can be also :
plot2d([sqrt(9-x^2),
-sqrt(9-x^2)],[x,-3,3],[legend,false],[gnuplot_preamble,"set size square"]);
See
http://gnuplot.sourceforge.net/docs_4.2/node230.html
HTH
Adam