// "PlotProfileWithSD" // This macro is a customized version of the Plot Profile // command that calculates the standard deviation of each // Y intensity column and displays it as an error bar. The // mean intensities and standard deviations are also // displayed in the "Results" table. The size of the error // bars is determined by the 'errorBarScale' variable. errorBarScale = 0.2; if (selectionType!=0) exit("Rectangular selection required"); getSelectionBounds(xbase, ybase, width, height); profile = newArray(width); sd = newArray(width); n = height; for (x=xbase; x