フィルターのクリア

Simple question about plot

1 回表示 (過去 30 日間)
aurc89
aurc89 2015 年 1 月 12 日
編集済み: Ayodele Oladeji 2015 年 1 月 12 日
I want to increase the thickness of a line in a plot with the command 'Linewidth' followed by a number, for example:
plot(x,y,'Linewidth',3).
The problem is that I have a double-y plot , generated like this:
plotyy(x,y1,x,y2)
and I don't know how to do this. The commands
plotyy(x,y1,x,y2,'Linewidth',3)
and
plotyy(x,y1,'Linewidth',3,x,y2,'Linewidth',3)
don't work. Thank you.

採用された回答

Ayodele Oladeji
Ayodele Oladeji 2015 年 1 月 12 日
編集済み: Ayodele Oladeji 2015 年 1 月 12 日
Like Star Strider said, check the documentation
[AX,H1,H2] = plotyy(x,y1,x,y2,'plot');
set(H1,'LineWidth',1); %First graph
set(H2,'LineWidth',3); %Second graph

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by