Moved scope specific enums to inside classes.
Lightened selection color.
Replaced magic numbers by enum.
Fixed rare bug by which axes were displayed in time format, when passing
from a timeseries plot to a spectrogram.