内容 | 
指定したプロパティで3DプロットとしてXYZデータをプロットします。
必要なOriginのバージョン:9.0
plotxyz iz:=(1,2,3);plotxyz (1,2,3) plot:=240;plotxyz iz:=3 plot:=103 hide:=1;plotxyz (1,2,3) plot:=242 ogl:=<new template:=gl3dbars>; //Add 3d bar plot.plotxyz iz:=3 plot:=240 ogl:=<new template:=gltraject>; //Add 3d trajectory plot.| 表示 名  | 
変数 名  | 
I/O と データ型  | 
デフォルト 値  | 
説明 | 
|---|---|---|---|---|
| 入力 | iz | 
 入力 XYZRange  | 
 <active>  | 
X列, Y列,Z列を含む入力データを指定します。 | 
| プロットタイプ | plot | 
 入力 int  | 
 103  | 
出力グラフに対するグラフタイプを指定します。正確なプロットを生成するためにogl変数を使って目的のテンプレートを指定することも必要です。 すべてのプロットタイプの完全なリストと対応するテンプレートについては、 プロットタイプIDをご覧ください。Note: XYZ範囲のプロットタイプのみ使うことができます。  | 
| 再スケール | rescale | 
 入力 int  | 
 1  | 
グラフ上の新しく作成したプロットを再スケールするかを指定します。
  | 
| 新しく作成したグラフを非表示 | hide | 
 入力 int  | 
 0  | 
出力グラフを非表示にするかどうかを指定します。
  | 
| レイヤにプロットを追加 | ogl | 
 出力 GraphLayer  | 
 [<新規テンプレート:=GLMesh>]<新規>  | 
プロットを追加するためにグラフレイヤを指定し、グラフテンプレート(組み込みでもユーザ定義でも)を指定してプロットを作成します。いくつかのプロットIDに対しては、oglのデフォルト値は動作せず、有効なテンプレートを指定する必要があります。 | 
このXファンクションはXYZワークシートデータからさまざまな3Dプロットを生成します。プロットを再スケールするか出力グラフを非表示にするかを制御します。
このサンプルは別々の列から3D棒グラフをプロットする方法を示しています。
//Import the data file string fn$=system.path.program$ + "\Samples\Statistics\automobile.dat"; impasc fname:=fn$; //Set column types wks.col3.type=6; wks.col4.type=4; wks.col6.type=1; //Select columns from worksheet to generate 3D bar plot plotxyz iz:=(4,6,3) plot:=242 ogl:=<new template:=gl3dbars>; //Turn off the speed mode and refresh the graph. layer.maxpts=0; doc -uw;
このサンプルは、3Dカラーマップ曲面を作成し、上部に射影の等高線を表示します。
//Import the data file string fn$=system.path.program$ + "\Samples\Graphing\Gaussian Surface.dat"; impasc fname:=fn$; //Set the third column as Z wks.col3.type=6; plotxyz iz:=3 plot:=103 ogl:=<new template:=glcmap>; layer -ip103 %c; range rr = 2; set rr -spf 1; set rr -spz 100;
次のサンプルは3つのサブ範囲を一つのグラフに3D散布図でプロットします。
//Import the data file string fn$=system.path.program$ + "\Samples\Statistics\Fisher's Iris Data.dat"; impasc fname:=fn$; //Set the third column as Z wks.col3.type=6; //Define the sub ranges range r1=col(3)[1:50]; range r2=col(3)[51:100]; range r3=col(3)[101:end]; //Plot the 3D scatters respectively into the same layer plotxyz iz:=r1 plot:=240 ogl:=<new template:=gl3d>; plotxyz iz:=r2 plot:=240 ogl:=[Graph1]1!; plotxyz iz:=r3 plot:=240 ogl:=[Graph1]1!;