フィルターのクリア

plot - strange behaviour for big numbers

1 回表示 (過去 30 日間)
Grzegorz Knor
Grzegorz Knor 2016 年 11 月 10 日
コメント済み: Grzegorz Knor 2016 年 11 月 14 日
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:
After changing y axis limits:
ylim([-10 1200])
Everything is OK:
I cannot (fortunately) reproduce it in MATLAB 2012b. Do you have any idea what happens?
  3 件のコメント
Grzegorz Knor
Grzegorz Knor 2016 年 11 月 11 日
Generally, I plot a data (with outliers like 1e+19), so to see an interesting region I use ylim command. I've noticed this strange behavior, when I used a function for conditionally colored line plot . The result was odd, and I found how to reporduce it, so this is an explanation of the simple code in my question :)
I will try use other render options as soon as I will have access to the MATLAB.
Grzegorz Knor
Grzegorz Knor 2016 年 11 月 14 日
I've changed renderer from default opengl to painters and here is the result:
:)

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by