MATLAB Answers

0

Every time I want to add labels to my colorbar, it says there is an error with the property, can any one help me?

Muhamed Sewidan さんによって質問されました 2019 年 3 月 25 日
最新アクティビティ Muhamed Sewidan さんによって コメントされました 2019 年 3 月 25 日
c= colormap;
colorbar('ticks',[19.5,24],'ticklabels',{'Valley','Hill'})
it says error in the last row, can anyone help me?

  7 件のコメント

Thank you all, I found the solution, my version is 2014a
and in the help colorbar menu, i found that i must write it:
colorbar('YTickLabel',...
{'Freezing','Cold','Cool','Neutral',...
'Warm','Hot','Burning','Nuclear'})
But I don't get it, why should it be written in the way (in three rows)?
I want to make only two labels at the maximum and the minimum

サインイン to comment.

タグ

0 件の回答


Translated by