How to add non-numerical axis values in 3D scatter plots?

2 ビュー (過去 30 日間)
FW
FW 2019 年 9 月 22 日
回答済み: dpb 2019 年 9 月 22 日
I am using a 3D scatter plot option. Can the x-axis values be labeled as "1:1, 2:1, 5:1, 8:1, 10:1" as peak area ratios? Currently, I added dummy numbers but the true labels should be the ratios as written. This is Matlab 2019a. Thanks.
This the syntax
scatter3(x,y,z,56, '^', 'r', 'MarkerFaceColor','r') % 56 is the marker size

採用された回答

dpb
dpb 2019 年 9 月 22 日
lbls=num2str([1 2 5 8 10].','%d:1'); % build char array of desired tick labels
xticklabels(lbls) % and write 'em...
Tick labels are 1:1 to ticks so just make the same number of labels as have ticks.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by