Copy legend

Copies the legend of the currently active spectrum or time signal into the buffer.