添加Y坐标名称的命令是什么

what is the command to add a Y coordinate name

导入csv线图文件到DM时,添加Y坐标名称的命令/代码是什么?例如强度或计数等

string filename
dircontents.taggroupgettagasstring("["+i+"]:Name", filename)
string extension=pathextractextension(filename,0)
if(extension!="csv" && extension!="CSV" && extension!="txt" && extension!="TXT")
{
    result("\nSkipped file "+filename+". Files must be .csv or .txt")
                continue
}

string thisfilepath=pathconcatenate(directory, filename)
image array=ReadandDisplayCSV(thisfilepath, headerline) 
drawlineplot(array, headerline, filename, IncludeError)

"image" 章末 F1 帮助中记录的命令是

ImageSetIntensityScale ImageSetIntensityOrigin ImageSetIntensityUnitString

您可以按照以下示例使用它们:

image linePlot := realImage( "Spectrum", 4, 200 )
linePlot = cos( icol/iwidth * 5 * Pi() ) + random()*0.1
linePlot.ShowImage()
OKDialog( "Add X calibration" )
linePlot.ImageSetDimensionCalibration( 0, 100, 0.5, "eV" , 0 ) 

OKDialog( "Add intensity calibration" )
linePlot.ImageSetIntensityScale( 0.5 ) 
linePlot.ImageSetIntensityOrigin( 100 ) 
linePlot.ImageSetIntensityUnitString( "counts" )