Need help with plotyy formatting
古いコメントを表示
All, I am in process of trying to use plotyy to plot 4 strings of data. 2 of the strings are on the left side y axis and 2 are on the right side y axis. I was able to accomplish this by issuing the plotyy command with the first 2 strings, then issue a hold, and then another plotyy command with the final 2 strings. I have been able to format the graph entirely as desired but I am having difficulty getting the legend to appear for all 4 strings of data. When I use the set command on the property 'DisplayName' for each data string, MATLAB allows be to set this property for 3 of the 4 data strings. For the string which will not accept my input for the parameter 'DisplayName', I keep recieving an error which states:
??? Undefined function or variable 'DisplayName'.
Can someone help me with a solution to this issue so I can have a legend which shows all 4 strings? Thanks.
2 件のコメント
Mark McNallly
2013 年 2 月 13 日
Hi, could you post the relevant code you're using for your problem?
Azzi Abdelmalek
2013 年 2 月 13 日
Post your code
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Two y-axis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!