[dmscript] Plot two graph in single window
Sun Sep 29 2024 07:36:31 GMT+0000 (Coordinated Universal Time)
Saved by
@j2hwank
// Get the ImageDisplay for the first signal
ImageDisplay disp = signal1.ImageGetImageDisplay(0)
// Add the second signal to the same display
//Object sliceID2 = disp.ImageDisplayAddImage(signal2, "Signal 2")
// Disable AutoSurvey to prevent automatic contrast adjustments
//disp.LinePlotImageDisplaySetDoAutoSurvey(0, 0)
// Optional: Adjust display contrast or visible range
//disp.LinePlotImageDisplaySetContrastLimits(-1, 1) // Adjust intensity range
//disp.LinePlotImageDisplaySetDisplayedChannels(0, 1000) // Show all channels
disp.ImageDisplayAddImage(img, "derivative")
disp.ImageDisplayAddImage(background, "tLine")
disp.LinePlotImageDisplaySetSliceComponentColor( 1, 0, 0, 0, 1 )
disp.LinePlotImageDisplaySetSliceComponentColor( 2, 0, 1, 0.33, 0)
disp.LinePlotImageDisplaySetLegendShown( 1 )
content_copyCOPY
Comments