[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No "square" plotting in 3d any more?!
From: |
Ben Abbott |
Subject: |
Re: No "square" plotting in 3d any more?! |
Date: |
Tue, 11 Dec 2012 07:06:23 -0500 |
On Dec 11, 2012, at 5:46 AM, address@hidden wrote:
> On 10/12/12 19:45:54, address@hidden wrote:
>> On 10/12/12 13:22:19, Jordi GutiƩrrez Hermoso wrote:
>>> Also note that the viewpoint you pick for a 3d plot will induce a
>>> corresponding distortion in isometric projection.
>>
>
> Attached an image as I would expect it (this one was created from the former
> one by streching it in gimp, not really ideal). As the view port is set to
> view along the diagonal of the box, i.e. along the vector [1,1,1], I would
> expect that even in the projection all axes have the same length and therefore
> that the outline resembles a hexagon with equally long sides.
>
> Many thanks for looking into this.
> Lynx
Please run this script ...
x = rand (100, 1);
y = rand (100, 1);
z = rand (100, 1);
figure (1)
clf ()
scatter3 (x, y, z, 10, 'b', "filled")
set (gca (), "plotboxaspectratio", [1 1 1])
filename = sprintf ("pbaspect=[%f,%f,%f].pdf", get (gca (),
"plotboxaspectratio"));
filename(filename=="0") = [];
print ("-dpdfwrite", filename)
set (gca (), "plotboxaspectratio", [1 1 1.25])
filename = sprintf ("pbaspect=[%f,%f,%f].pdf", get (gca (),
"plotboxaspectratio"));
filename(filename=="0") = [];
print ("-dpdfwrite", filename)
and email me the results. I've attached the results I get.
pbaspect=[1.,1.,1.25].pdf
Description: Adobe PDF document
pbaspect=[1.,1.,1.].pdf
Description: Adobe PDF document
go_aspect.m
Description: Binary data
- No "square" plotting in 3d any more?!, lynx . abraxas, 2012/12/10
- Re: No "square" plotting in 3d any more?!, lynx . abraxas, 2012/12/10
- Re: No "square" plotting in 3d any more?!, lynx . abraxas, 2012/12/11
- Re: No "square" plotting in 3d any more?!, lynx . abraxas, 2012/12/11
- Re: No "square" plotting in 3d any more?!,
Ben Abbott <=
- Re: No "square" plotting in 3d any more?!, lynx . abraxas, 2012/12/11
- Re: No "square" plotting in 3d any more?!, lynx . abraxas, 2012/12/11
- Re: No "square" plotting in 3d any more?!, Benjamin Abbott, 2012/12/11
- Re: No "square" plotting in 3d any more?!, lynx . abraxas, 2012/12/11
- Re: No "square" plotting in 3d any more?!, lynx . abraxas, 2012/12/11