How to position the y axis on the right in a plot
15 ビュー (過去 30 日間)
古いコメントを表示
I have two vectors f(t) and g(t) and I want to plot them in one graph using plotyy. But I also want to do some other things like changing the marker style of each curve and also changing the span of the axes. I have tried using xlim but it only affects one of the x axes, not both.
0 件のコメント
採用された回答
Ingrid
2016 年 1 月 28 日
you need to use the handles for this so
[hAx,hLine1,hLine2] = plotyy(x,y1,x,y2);
xlim(hAx(1),...)
xlim(hAx(2),...)
this is also very well explained in the documentation of plotyy
doc plotyy
4 件のコメント
Ingrid
2016 年 1 月 29 日
set(hLine1,'LineStyle','none')
this is clearly explained in the documentation of plot
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Two y-axis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!