// 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 )
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter