Colour Peak Labels by Contour Colour

A little macro that will colour your peak symbols and labels in the same colour as the positive contours for each spectrum - can be useful for titrations or other situations when you are overlaying lots of spectra:

Python
  1. for sp in project.spectra:
  2. for pl in sp.peakLists:
  3. pl.symbolColour = sp.positiveContourColour
  4. pl.textColour = sp.positiveContourColour



Or if you are using 1Ds, you would need to colour the symbols by the slice colour:

Python
  1. for sp in project.spectra:
  2. for pl in sp.peakLists:
  3. pl.symbolColour = sp.sliceColour
  4. pl.textColour = sp.sliceColour




Vicky