scaling the 3D axes

fbeleznay shared this question 4 years ago
Answered

Hello,

I would like to scale the 3D z-axis dynamically, depending on the maximum value of a function. For example, keeping the scaling of the x and y axis, I would like to adjust the scale on the z-axis from -r to 2r in the applet attached.

Any advice would be appreciated.

Thanks,

Ferenc

Comments (13)

photo
1

Hola


Puede Ser Primero ir a la vista gráfica 3D en Propiedades. LUEGO, preferencias eje z, tildar distancia y alli ingresar 2r.

Es esa la respuesta esperada?

Saludos cordiales.

Zulma

photo
1

Thanks Zulma, but this is not what I would like to achieve. This only puts the ticks at different distances on the z-axis, but what I need is that the graph fills approximately the same vertical proportion of the available space. As it is now, it is too flat for small r-values and too high for large r-values.

I can of course find the maximum of the function (in my example this is r) and multiple the function by 5/r. This way the new graph always goes up to 5, but then I need to replace the numbers on the z-axis. Instead of the 1,2,3,4,5, I need r/5, 2r/5, ... So far I could not figure out how to do this. It would be much simpler to just say "zmin=-r" and "zmax=2r" in the option box (like in the 2D case), but unfortunately this is not an option. I guess, this has to do something with the difference between the 3D and 2D display procedure, but still, if there were some scripting or other solution, it would be helpful. I looked at the available javascript methods, and found a method to do this for 2D, but not for 3D.

Ferenc

photo
1

Hi,


We are working on this feature now -- but I can't say when this will be finished (maybe in a couple of months).

Cheers,

Mathieu

photo
1

Any update on when 3d axis scaling feature will launch?

photo
1

Please?

photo
1

It's already launched!

photo
photo
1

Thank you very much for both the response and that it is on your to-do list. It will indeed be helpful (at least for me), when implemented.

Ferenc

photo
1

Hi,


an old request :

https://help.geogebra.org/t...


See script OnUpDate r, in attachment


...

photo
1

Hi Patrick,

As far as I see, this solution rescales all axes at the same time, keeping the ratio 1:1:1, which is not quite what I would like to have. In 2D the scale on the x and y axes can be changed independently. I think implementing similar feature for 3D is what Matthieu mentionod, when he replied earlier.

photo
1

You can multiply the entire function by 0.001 and consider the z-axis in thousands. It's a good solution.

photo
photo
3

put the mouse over the zAxis, pressing shift drag the zAxis down, the scale must change

setaxisratio[ , , ] command for GG 5.2, see the help

photo
1

It worked. Thanks

photo
photo
1

Hi,

SetAxesRatio() command will work with 3D view soon.

Cheers,

Mathieu

© 2020 International GeoGebra Institute