フィルターのクリア

How can I plot 3D graph using x,y,z data with different axis size/limit?

5 ビュー (過去 30 日間)
Ahmad Helmi
Ahmad Helmi 2021 年 4 月 20 日
コメント済み: Katerina 2024 年 5 月 25 日
Hello guys!
I am trying to plot a 3D graph on MATLAB, for non-uniform scattered points (not having equal distances between them), where each point has an x,y and z value. However, I want the axis size for each one to be different but MATLAB is only allowing me to plot it with similar axis size/limit for x,y and z. (For example I want x to be from 0 to 30, y from 0 to 40 and z from 0 to 1, but it allows me to only set 1 size/limit for all of them). Do you have any idea on how to plot it with different axis sizes? Or any other software that allows me to do so?
Thank you so much for your help in advance!
  1 件のコメント
Katerina
Katerina 2024 年 5 月 25 日
Hello,
I think I have similar problem. I have plotted a 3D graph of my data, but the x-axis is significantly shorter than the rest. Is there some way to widen the spac between ticks on the x-axis/to increase its length?
it looks much better if I do mesh graph, but it does not represent my data as well as the bar graph:
Is there any change to set the axes on the 3D bar graph the same way as they are on the second graph?
Thank you for your help!

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

回答 (1 件)

David Fletcher
David Fletcher 2021 年 4 月 20 日
You say that the limits don't work - I assume you mean this doesn't work?
xlim([0 30])
ylim([0 40])
zlim([0 1])
  5 件のコメント
David Fletcher
David Fletcher 2021 年 4 月 20 日
You might be better off reposting your question along with any code and data you have. This sounds like your problem is more to do with actually plotting a graph than just changing axis limits, but unless people know what code and data you have and what you are trying to acheive, the help will be limited.
Ahmad Helmi
Ahmad Helmi 2021 年 4 月 20 日
Thanks a lot for your advice, sorry I am new to this! Much appreciated!

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

カテゴリ

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