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" );
);
);
This JSL opens .CSV files in a directory and plots contour graphs for each.
The issue is that a dialog box opens to confirm the MAX/MIN and # of contour layers for each plot.
How do you prevent this from happening?
Thankyou.