Subject: Script for setting contour levels
From: Tom Goddard
Date: May 11, 2010

Next: 708


Hi Marco,

You can add a shortcut and menu entry for setting all contour levels
using the attached Python code that you put in the Sparky start-up file:

~/Sparky/Python/sparky_init.py

This will add a shortcut kl that sets the contour levels of all open
spectrum windows. The actual contour level is hard-coded in the
sparky_init.py file. If you wanted to be able to type the number into a
dialog that would take some more work to code the dialog in Python. It
is not too hard if you want me to show you.

Tom


Hi Tom,


I have a little question about sparky. Is there a way to make
an extension that lets you adjust the contour levels for multiple
spectra at the same time ? I need to open a bunch of 2D planes and I
would like to set the contour levels the same for all of them, but
doing it one at the time by hand takes a lot of time. I tried looking
at other extensions and the classes available, but I dont see anything.

Thanks a lot,

Marco