How to fix this weird plot behaviour?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Adrian Brand
le 3 Avr 2020
Réponse apportée : Adrian Brand
le 3 Avr 2020
Hello. I have problem with dissapearin function using plot. It looks like this:

However if I change position of the view it disapears:

It is the case of only that function. Does somebody know, why?
figure(1)
hold on
ylim([678, 685])
plot(vysledkyM, 'r');
plot(vysledkyU, 'b');
plot(vysledkyS, 'g');
legend('death penalty','stupnova', 'umerna')
hold off
EDIT: Clarification of the question
0 commentaires
Réponse acceptée
Plus de réponses (1)
David Goodmanson
le 3 Avr 2020
Modifié(e) : David Goodmanson
le 3 Avr 2020
Hi Adrian,
figure(1)
plot(vysledkyM, 'r');
ylim([678, 685])
hold on
plot(vysledkyU, 'b');
plot(vysledkyS, 'g');
legend('death penalty','stupnova', 'umerna')
hold off
Matlab only buys into 'hold on' after the first trace is plotted. (Same with ylim, evidentty).
Voir également
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
