how to make label y axis specific?

3 次查看(过去 30 天)
Ibrahim AlZoubi
Ibrahim AlZoubi 2020-6-21
回答: Sindar 2020-6-25
I want to make y axis as (0 500 1000) how to do it?
i use I use ylim([1 1000])

回答(1 个)

Sindar
Sindar 2020-6-25
% if you want a label at 0, make sure to include it in your limits
ylim([0 1000])
yticks([0 500 1000])

类别

Help CenterFile Exchange 中查找有关 Axis Labels 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by