plot - strange behaviour for big numbers
Mostra commenti meno recenti
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 Commenti
dpb
il 10 Nov 2016
Outside the question of "why would one do this?" ( :) ), looks like submitting bug report is the ticket. The one thing generally to do in cases like this where what is expected isn't what is rendered is to try the various 'renderer' options to see if makes symptom disappear.
Grzegorz Knor
il 11 Nov 2016
Grzegorz Knor
il 14 Nov 2016
Risposte (0)
Categorie
Scopri di più su Graphics Performance in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
