在 JSL 中创建等高线图会为每个图形显示 MIN/MAX/#LAYERS 对话框directory = "C:\TEST\";
fileNames = Files In Directory( directory );
For( iFile = 1, iFile <= N Items( fileNames ), iFile++,
filename = fileNames[iFile];
If( Ends With( filename, ".csv" ),
dt = Open( directory || filename );
max = Col Max(Column( dt,4));
min = Col Min(Column( dt,4));
dt:DC_0VDC << Format( "Engineering", 12 );
dt:DC_1VDC << Format( "Engineering", 12 );
dt:DC_3VDC << Format( "Engineering", 12 );
dt << Contour Plot(
X( :X, :Y),
Y( :DC_1VDC ),
Legend( 2 ),
Show Contours( 1 ),
Show Data Points( 1 ),
Fill Areas( 1 ),
Label Contours( 0 ),
Color Theme( "Blue White Red" ),
Specify Contours( min, max, N( 4 ) ),
);
//Close( dt, "nosave" );
);
);此 JSL 在目录中打开 .CSV 文件并为每个文件绘制等值线图。
问题是,会打开一个对话框来确认每个图的最大/最小和等高线层数。

如何防止这种情况发生?
谢谢。
数据存取质量和工艺工程回复:在 JSL 中创建等值线图会为每个图形显示 MIN/MAX/#LAYERS 对话框指定等值线消息需要在等值线图定义之外指定。
cp = dt << Contour Plot(
X( :X, :Y),
Y( :DC_1VDC ),
Legend( 2 ),
Show Contours( 1 ),
Show Data Points( 1 ),
Fill Areas( 1 ),
Label Contours( 0 ),
Color Theme( "Blue White Red" );
xp << Specify Contours( min, max, N( 4 ) ));
回复:在 JSL 中创建等高线图会为每个图形显示 MIN/MAX/#LAYERS 对话框您可能必须使用单独的<<指定轮廓。

对脚本索引示例稍作修改:
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Little Pond.jmp");
obj = dt << Contour Plot(X(:X, :Y), Y(:Z));
min_c = -4;
max_c =8;
obj << Specify Contours(
Min(min_c),
Max(max_c),
N(4)
);
编辑:
您似乎在命令中缺少 Min 和 Max,这似乎也有效:
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Little Pond.jmp");
min_c = -4;
max_c = 8;
obj = dt << Contour Plot(X(:X, :Y), Y(:Z), Specify Contours(Min(min_c), Max(max_c), N(4)));