Multiple axes plot more than 2 axes

24 vues (au cours des 30 derniers jours)
Vick
Vick le 14 Oct 2017
Commenté : Vick le 22 Oct 2017
Hi all,
I need to plot more than 6 y data for a single x data. These y data will not auto scale in a single plot.. what I was thinking of plotting with more than 2 y axes with different colour.. is there any functions in file exchange which can do this?

Réponse acceptée

Jan
Jan le 14 Oct 2017
  3 commentaires
Jan
Jan le 15 Oct 2017
I'm not sure, what you are asking for. You can normalize all signals to the range [-1, +1] and use a listbox or the ButtonDownFcn of the drawn lines to display different tick labels on the Y axis, while the tick values remain the same. Or you can set the (undocumented) property 'YLimInclude' of all but the currently focused line to 'off'. Then the auto-scaling considers the active line only.
Vick
Vick le 22 Oct 2017
Hi Jan, Solved the problem with creating new axes for every signals and setting axes color to none and for getting different color used the below function, https://in.mathworks.com/matlabcentral/fileexchange/42673-beautiful-and-distinguishable-line-colors-+-colormap
Thanks for the help again..

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Two y-axis dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by