フィルターのクリア

how to control xticklabel location?

3 ビュー (過去 30 日間)
roudan
roudan 2018 年 1 月 25 日
編集済み: roudan 2018 年 1 月 25 日
Hi
I change y limit, then my xticklabel location is aligned with previous y limits.
For example, in the attached figure, original minimum y is -16. when I change y limit to -266. the xticklabel move up to the location where -16 was.
I have been playing with this all morning and i don't know how to do it.
so could you please help me on how do i control the location of xticklable after changing y limits? I want the xticklabel always under the x-axis.
Thank you so much.
Here are my codes
% remove current tick first
set(hrightsubplot,'XTick',[])
set(hrightsubplot,'Xticklabel',{[]})
set(hrightsubplot,'xtick',[startdatenum:dayinterval:enddatenum]);
datetick(hrightsubplot,'x','mmm-dd-YYYY','keepticks','keeplimits');
rotateticklabel(hrightsubplot,45);
I think it is due to datetick(). what does the keepticks do? I really don't like datetick().

回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by