How to apply "axis equal" to only two directions while visualizing volume data?

13 ビュー (過去 30 日間)
Rubin Lewis
Rubin Lewis 2016 年 4 月 26 日
コメント済み: Rubin Lewis 2016 年 4 月 27 日
I am trying to use "slice" function to plot volume data. And the x- and y-axis need to be scaled equally, but the z-axis need not. However, the "axis equal" command will influence every axis. Is there a way to change that

採用された回答

Adam
Adam 2016 年 4 月 26 日
編集済み: Adam 2016 年 4 月 26 日
I haven't really used 'axis equal' much but it is just a convenience function. The help documentation actually gives details of which properties change for the various axis styles.
In this case it says that 'DataAspectRatio' is set to [1 1 1] and PlotBoxAspectRatio to [3 4 4].
To be honest the latter setting is a bit of a mystery to me, but the first you could just set yourself to always be the same for x and y while leaving z independent. PlotBoxAspectRatio just affects the relative length of the various axes though, not their domain values.

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by