plot - strange behaviour for big numbers
1 回表示 (過去 30 日間)
古いコメントを表示
I've found a strange behavior of plot function in MATLAB 2015b (Windows 7). Namely this code:
plot([1,1],[1e+19,100])
produces line from 1e+19 to 100. But if I zoom it by dint of command:
xlim([0, 2])
ylim([-10, 110])
I obtain the following figure:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157924/image.png)
After changing y axis limits:
ylim([-10 1200])
Everything is OK:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157925/image.png)
I cannot (fortunately) reproduce it in MATLAB 2012b. Do you have any idea what happens?
3 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graphics Performance についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!