How to invert/flip only Y1 axis in a 2-line plot (Y1 and Y2 upon X)?
6 ビュー (過去 30 日間)
古いコメントを表示
I am trying to a plot time series of two variables, ssh and iso (in csv file attached (ssh.csv)).
However I wanted to invert/flip the iso axis (Y2 axis) while keeping the ssh axis (Y1 axis) the same. I attached an example.jpg image to show exactly how I want the plot. I have previously used "plot" and "yyaxis left" and "yyaxis right" commands. But this graph gives increasing values on both Y axes.
Would be grateful to receive some help in this.
0 件のコメント
採用された回答
madhan ravi
2018 年 11 月 24 日
編集済み: madhan ravi
2018 年 11 月 24 日
https://www.mathworks.com/matlabcentral/answers/22321-plotting-and-reversing-axis-direction#answer_29378 , grab second axes handle and do as instructed in the link
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!