negative values for 'ylim' results in error
古いコメントを表示
Hi,
i'm trying to use the 'ylim'-commad to specify my axes format. Works fine for positive values, but if 'ylim' turns out to be negative i get the following error is there a way bypass this problem:
axes('box','on',...
'LineWidth',2,...
'FontName','times',...
'FontSize',22,...
'ylim',[0 -1.2],...
'YTick', 0:(-1.2/6) :-1.2,...
'xlim',[0 0.3],...
'XTick', 0:0.3/6:0.3);
results in:
??? Error using ==> axes
Bad property value found.
Object Name : axes
Property Name : 'YLim'
Values must be increasing and non-NaN.
Error in ==> XXXX at 76
axes('box','on',...
Great Thanks!
1 件のコメント
Andrei Bobrov
2011 年 9 月 27 日
'ylim',[-1.2 0 ],...
'YTick', -1.2:(1.2/6):0,...
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Axis Labels についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!