このページは前リリースの情報です。該当の英語のページはこのリリースで削除されています。
thingSpeakPlotYY
両側に Y 軸がある 2 次元ライン プロット
説明
例
曲線 YY プロットの作成
同じ座標軸上に 2 つの曲線プロットを作成します。右側と左側にスケールをラベル付けします。
x = 0:0.01:20; y1 = 200*exp(-0.05*x).*sin(x); y2 = 0.8*exp(-0.5*x).*sin(10*x); thingSpeakPlotYY(x,y1,x,y2)
入力引数
X
— X 値
ベクトル | スカラー | 行列
X 値。スカラー、ベクトル、または行列として指定します。X は数値配列、logical 配列、または datetime 配列にすることができます。
Y
— Y 値
ベクトル | スカラー | 行列
Y 値。スカラー、ベクトル、または行列として指定します。Y は数値配列、datetime 配列、または logical 配列にすることができます。
名前と値の引数
例: thingSpeakPlotYY(x1,y1,x2,y2,'Color1','red',Color2,'green')
Specify optional
comma-separated pairs of Name,Value
arguments. Name
is
the argument name and Value
is the corresponding value.
Name
must appear inside quotes. You can specify several name and value
pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
Color1
— ラインの色
[0 0.4470 0.7410]
(既定値) | 色を表す文字ベクトル | RGB 3 成分
最初のプロットおよび左 Y 軸スケールのラインの色。'Color1' と、RGB 3 成分または色を表す文字ベクトルで構成されたコンマ区切りのペアとして指定します。RGB 3 成分の値 [0
0 1]
は、青に相当します。各ラインの色を個別に指定します。
RGB 3 成分は、各要素が色の赤、緑、青の成分の強度を指定する 3 要素の行ベクトルです。強度値は [0,1]
の範囲でなければなりません。たとえば [0.4 0.6 0.7]
のようになります。あるいは、名前によっていくつかの一般的な色を指定できます。次の表に、色の完全名および省略名のオプションと、等価の RGB 3 成分の値を示します。
オプション | 説明 | 等価な RGB 3 成分 |
---|---|---|
'red' または 'r' | 赤 | [1 0 0] |
'green' または 'g' | 緑 | [0 1 0] |
'blue' または 'b' | 青 | [0 0 1] |
'yellow' または 'y' | 黄色 | [1 1 0] |
'magenta' または 'm' | マゼンタ | [1 0 1] |
'cyan' または 'c' | シアン | [0 1 1] |
'white' または 'w' | 白 | [1 1 1] |
'black' または 'k' | 黒 | [0 0 0] |
例: thingSpeakPlotYY(x1,y1,x2,y2,'Color1',[1 0
1],'Color2','yellow');
Color2
— ラインの色
[0.8500 0.3250 0.0980]
(既定値) | 文字ベクトル | RGB 3 成分
2 番目のプロットおよび右 Y 軸スケールのラインの色。'Color2' と、RGB 3 成分または色を表す文字ベクトルで構成されたコンマ区切りのペアとして指定します (オプションについては 'Color1'
を参照)。RGB 3 成分の値 [1 0 0]
は、赤に相当します。各ラインの色を個別に指定します。
例: thingSpeakPlotYY(x1,y1,x2,y2,'Color1',[1 0
1],'Color2','yellow');
LineWidth1
— プロット ラインの幅
0.5
(既定値) | 数値
最初のプロットの外枠の幅。'LineWidth1' と、ポイント単位の正のスカラーで構成されたコンマ区切りのペアとして指定します。
例: thingSpeakPlotYY(x1,y1,x2,y2,'LineWidth1',1.5,'LineWidth2',2);
データ型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
LineWidth2
— プロット ラインの幅
0.5
(既定値) | 数値
2 番目のプロットの外枠の幅。'LineWidth2' と、ポイント単位の正のスカラーで構成されたコンマ区切りのペアとして指定します。
例: thingSpeakPlotYY(x1,y1,x2,y2,'LineWidth1',1.5,'LineWidth2',2);
データ型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
YScale1
— 左 Y 軸スケール
'linear'
(既定値) | 'log'
左 Y 軸スケール。'YScale1' と、'linear'
または 'log'
のいずれかで構成されたコンマ区切りのペアとして指定します。
例: thingSpeakPlotYY(x1,y1,x2,y2,'YScale1','log');
YScale2
— 右 Y 軸スケール
'linear'
(既定値) | 'log'
右 Y 軸スケール。'YScale2' と、'linear'
または 'log'
のいずれかで構成されたコンマ区切りのペアとして指定します。
例: thingSpeakPlotYY(x1,y1,x2,y2,'YScale2','log');
Grid
— プロット グリッド
'off'
(既定値) | 'on'
プロット グリッド。'Grid' と、グリッドを on
または off
にする logical 入力で構成されたコンマ区切りのペアとして指定します。
例: thingSpeakPlotYY(x1,y1,x2,y2,'Grid','on');
YLabel1
— 左 Y 軸ラベル
char
左 Y 軸ラベル。'YLabel1' と文字ベクトルで構成されたコンマ区切りのペアとして指定します。
例: thingSpeakPlotYY(x1,y1,x2,y2,'YLabel1','Left
Y-Axis');
YLabel2
— 右 Y 軸ラベル
char
右 Y 軸ラベル。'YLabel2' と文字ベクトルで構成されたコンマ区切りのペアとして指定します。
例: thingSpeakPlotYY(x1,y1,x2,y2,'YLabel2','Right
Y-Axis');
XLabel
— X 軸ラベル
char
X 軸ラベル。'XLabel' と文字ベクトルで構成されたコンマ区切りのペアとして指定します。
例: thingSpeakPlotYY(x1,y1,x2,y2,'XLabel','X-Axis');
Title
— プロットのタイトル
char
プロットのタイトル。'Title' と文字ベクトルで構成されるコンマ区切りのペアとして指定します。
例: thingSpeakPlotYY(x1,y1,x2,y2,'Title','Plot
Title');
XGrid
— X 軸グリッドの指定
'off'
(既定値) | 'on'
X 軸のグリッドを表示するには、'XGrid' と 'on'
のコンマ区切りのペアを指定します。
YGrid1
— 左 Y 軸グリッドの指定
'off'
(既定値) | 'on'
左 Y 軸のグリッドを表示するには、'YGrid1' と 'on'
のコンマ区切りのペアを指定します。
YGrid2
— 右 Y 軸グリッドの指定
'off'
(既定値) | 'on'
右 Y 軸のグリッドを表示するには、'YGrid2' と 'on'
のコンマ区切りのペアを指定します。
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)