How to align my X, Y, Z axes labels and have consistent spacing!

6 ビュー (過去 30 日間)
A
A 2015 年 7 月 8 日
コメント済み: Image Analyst 2015 年 7 月 8 日
Hi guys,
I am trying to find a way to beautify my 3d surface plots. I have the example surface below. Is there anyway that the axes labels can be rotated so that they are parallel to the angle of the axes that they are a label to? For example, I want the X LABEL to run parallel to the x axis itself? and the same for the other 3? I want this alignment to be maintained when you increase the plot window and change aspect ratio of the plot.
Lastly, I would like for there to be EQUAL DISTANCE between all three labels and their corresponding axes. For example, I want the distance between X LABEL and x-axis to be the same as the distance between Y LABEL and y-axis and Z LABEL and z-axis. Again, I would want this distance maintained if the aspect ratio of the figure is changed or the size of it increases or not.
Thank you
set(0,'DefaultFigureColor','White','defaultaxesfontsize',8,'DefaultAxesFontname','Calibri','DefaultTextFontName','Calibri')
surf(peaks);
xlabel('X Label', 'fontweight', 'bold');
ylabel('Y Label', 'fontweight', 'bold');
zlabel('Z Label', 'fontweight', 'bold');
  2 件のコメント
Walter Roberson
Walter Roberson 2015 年 7 月 8 日
Which matlab version?
A
A 2015 年 7 月 8 日
R2015a!
Thanks

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2015 年 7 月 8 日
Did you see "axis equal"? It says "Use the same length for the data units along each axis." Is that what you want?
  2 件のコメント
A
A 2015 年 7 月 8 日
Not quite.
I want to make so that the distance between Z LABEL and Z AXIS, Y LABEL and Y AXIS, and X LABEL and X AXIS = the same.
Thanks
Image Analyst
Image Analyst 2015 年 7 月 8 日
I don't know how much control we have for how far away the axis label is from the axis itself. Can you post a screenshot showing how the labels are drastically different in how far they are from their respective axes?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAxis Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by