MATLAB Answers

Equal Axis reduce the plot size

23 views (last 30 days)
Marten Amschler
Marten Amschler on 3 Dec 2020
Answered: Bjorn Gustavsson on 3 Dec 2020
Dear Matlab experts,
i am using GUIDE to develop a quick testing tool. I want to show a Pointcloud before and after some processings. My problem is that i want to plat the axis "equal" with a DataAspectRation [1 1 1]. But the more narrow my pointcloud gets, the smaller the plot gets.
For example, this is how big my plot could be:
This is how big the plot is when i hide the coordinatesystem:
and this is how small it is after some processing (and the pointcloud gets smaller in Y-direction):
But in the end, the user has only a very small place where he can put the mouse to "rotate" or "zomm" etc.
I'd like to have a plot with the same proportions for all axes... but stil have bigger axes. I hope you get the idea.
Thanks in advance

  0 Comments

Sign in to comment.

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 3 Dec 2020
That is a terrible problen, what happens in your case, with increasingly narrow axes is (likely) unavoidable when you get very different span in the different axis-directions - a 2-by-2-by-2 brick-wall will be reasonably cubic and we can have a nice plot, if we extend this in one direction (2000-by-2-by-2) and display it with equal scale in all direction the largest span will force the others to become very small onscreen.
No solution, only advice: use judgement and "design taste" to the best of your capability for this problem.
HTH

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!