- Set ylim where you want it and let the rest of the graph go off the top and not be shown,
- Use log y axis to bring scaling of disparate ranges into view, or
- Use two y axes and plot on two y-axis ranges on the LH and RH to show the whole thing.
A Peak in y-axis dwarfing the other plot points
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Sreekanth Nandakumar
il 29 Lug 2019
Commentato: Sreekanth Nandakumar
il 31 Lug 2019
Hello all,
I have a problem in a MATLAB plot regarding a peak value in y-axis. The plot looks like in the Fig 1. But I don't want my plot to scale the y-axis to that one peak value anomaly. I want MATLAB to scale the y-asis according to the rest of the value in the plot as shown in Fig.2 (Fig.2 is the plot after removing that peak value anomaly). Can anyone please help me in this?
![Peak.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231704/Peak.jpeg)
![Without_peak.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/231705/Without_peak.jpeg)
0 Commenti
Risposta accettata
dpb
il 29 Lug 2019
Modificato: dpb
il 29 Lug 2019
You have basically one of three choices --
The last of the above may not be too pleasing owing to one x axis; you might find using two subplots better if choose that route.
I guess there is a fourth option -- find another graph to plot that is better behaved! :)
5 Commenti
dpb
il 30 Lug 2019
I'm guessing this is being plotted dynamically during the iteration phase so there really aren't outliers in that sense as the system evolves...
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!