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?

 채택된 답변

Jan
Jan 2017년 10월 14일

0 개 추천

댓글 수: 3

Vick
Vick 2017년 10월 15일
Hi Jan Simon,
Problem with yyaxis is that i can add only upto 2 scale ranges..
Thanks for the link i got what i was searching for.... what if i want to display only one axes in this multi-plot.(other axes to hide)
I'm building a gui where users adds signal to the y-data which will be displayed on a listbox. Now i want to plot all the selected signals in the same axes at auto range for each signals and display only the axes of the selected signal in the listbox(no multiselect)...
Jan
Jan 2017년 10월 15일
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 2017년 10월 22일
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..

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Axis Labels에 대해 자세히 알아보기

제품

질문:

2017년 10월 14일

댓글:

2017년 10월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by