LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D graph how to get axis real ratio

 

Hi all,

 

what I am trying to accomplish is that if I have x axis that represents lets say 15um and y axis also representing 15um plus z axis representing 5um to see the real-life ratio between these axis. So the size of the z axis would be 1/3 of the size of the x and y. Is that possible? Otherwise I still have the cube representation of the 3D graph that doesn't say much.

 

Thx to any help

 

LV 2011, Win7
0 Kudos
Message 1 of 9
(4,048 Views)

Hi ceties,

 

Would simply changing the z-scale range suffice? You should be able to bring up the 3D Graph Properties and change the Axes >> Range to 0 to 15.  If that does not suffice, browse around all of the properties and see if you can't find the rights ones to get the graph looking the way you want!

 

Cheers, 

Brian A.
National Instruments
Applications Engineer
Message 2 of 9
(4,018 Views)

Hi Brian! 

Thanks for your reply. Nevertheless I of course did that before I posted the question but as you can see from the attached picture just setting the range for all axis to the same interval doesn't help. In addition my application is resizable so the dimensions of the ActiveX container change. What I would really like to see is the axis preserving their "real world" proportions. If you have any ideas how to achieve this I would be much obliged.

Thx!

LV 2011, Win7
0 Kudos
Message 3 of 9
(4,003 Views)
The sizes of the axes on the 3D graph seem to be related to the proportions of the ActiveX container.  So a short, squatty graph seems to have a shrunken Z axis.  A tall, thin graph seems to have an elongated Z-axis.  Perhaps you just need to make sure the height and width of your 3D graph remain the same.  Also remember that the direction angle of your viewpoint comes into play as well.
Message 4 of 9
(3,988 Views)
I will follow your advice, although it's not the most elegant solution but better than nothing. Thanks
LV 2011, Win7
0 Kudos
Message 5 of 9
(3,977 Views)

Shut off auto-scale and set the range as you like.

 

 

 

See this thread for the full story plus example code.

 

Ben

Message Edited by Ben on 08-25-2008 06:05 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 9
(3,957 Views)
Hi Ben, I went through this thread already some time ago. It's handy in many ways but it doesn't answer the question of how to achieve the real aspect ratio of the axis when the graph scales - more precisely when the container changes it's dimensions so that foer instance the width is much bigger than height. So far the only solution is to keep the height and width of the container the same and do manual scaling.
LV 2011, Win7
0 Kudos
Message 7 of 9
(3,953 Views)

I don't think I follow you, sorry.

 

Could you post a good and a bad image?

 

Did you try...

 

3dGraph >>> Properties >>> Graph >>> 3D

 

and set Projection to "Perspective"?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 9
(3,941 Views)
PERSPECTIVE that's it!!!! I didn't know that it gives this effect! Ben thanks a lot!
LV 2011, Win7
0 Kudos
Message 9 of 9
(3,924 Views)