XTickLabel Problem
古いコメントを表示
Trying to plot two bar graphs that use the same x and y axis tick labels and values respectively for each axis. The bar graphs are being plotted correctly except the axis labels for the x and y axis (YLim) or YTick are being ignored and rather replaced by generic default values it appears. Any ideas? Here is a message I get when I execute the .m file.
An axes's "XTickLabel" property does not have a fixed set of property values.
回答 (1 件)
Walter Roberson
2011 年 3 月 18 日
0 投票
Do you happen to be using datetick() ? If so, then use the 'keeptick' option to it.
Are you using plotyy? If so are you applying the settings to both axes ?
2 件のコメント
Randall
2011 年 3 月 18 日
編集済み: per isakson
2017 年 8 月 19 日
Walter Roberson
2011 年 3 月 18 日
You fetch the XTickLabel from the first axis, then you create a new figure (which would have a new axis) and set to labels to something different. That isn't going to affect the first axis.
カテゴリ
ヘルプ センター および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!