[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "axis scale / dataspectratio" - problem with 3D-graph
From: |
Clara Brück |
Subject: |
Re: "axis scale / dataspectratio" - problem with 3D-graph |
Date: |
Wed, 4 May 2011 11:00:16 +0200 |
Hi,
Thanks for your answers!
>2011/5/3 Jordi Gutiérrez Hermoso address@hidden
>
>> I'm using a portable version : Octave 3.0.0 whith QtOctave 0.7.2
>
> This is a very old Octave version. Are you unable to get a newer
> version? I'm almost sure the solution I proposed above won't work on
> an older version.
I need a portable version, because I'm supposed to test a portable Version of
Octave.
It should be for students in University, so that they can use it from a
USB-Stick everywhere.
This version is the newest portable Version that I've found.
> If you try axis([xlo,xhi,ylo,yhi,zlo,zli],"square"), do you get what
> you want?
Tried this:
octave:5> axis([-8000,8000,0,8000,-8000,8000],"square")
but the result is exactly the same (2D okay, 3D->"1/2egg") :(
But I'dont want it to be a squere anyway.
I want the x and z axis to have the same length and y should be half as long.
>2011/5/3 "pathematica"
> I wrote something in the online wiki about this. Have a look at the section
> headed "Adjusting axes on three-dimensioinal plots" to see if it addresses
> your problem.
>
> You might need to experiment with the vector (denoted [a b c d]) in the
> set(gca(), 'position', [ a b c d]) command - I'm afraid I can't remember
> whether there was some reason for the numbers I used or whether I found them
> by trial and error.
>>octave:4> set (gca (), "position", [0.13000 -0.05000 0.77500 1.08000]);
>>%force cubic aspect
Tried this also:
octave:17> axis([-8000,8000,0,8000,-8000,8000],"square")
octave:18> hold("on")
octave:19> plot3 ([0 8000]', [0 8000]', [0 8000]', "r")
octave:20> set (gca (), "position", [0.13000 -0.05000 0.77500 1.08000]);
But that changes absolutely nothing, too :(
Tried other values, but always the same result->nothing changes
I think I have to come to the conclusion, that Octave(at least the portable
version) can't be used for this purpose.
Thanks for your suggestions anyway!!
Greetings
Clara