Hi Jeremy,
This works flawless. Actually, I had no clue that one can do it so easy... :)
Thanks a lot!
Serge

On Mon, 14 Nov 2011 10:55:49 +0100, Jeremy Sanders <[email protected]> 
wrote:

Sergey Gromov wrote:

Hi Jeremy,
First of all, many-many thanks for such a great tool as Veusz! I use it
every now and then, and it is indispensable; especially since you have
implemented colouring of the points. One question: I'd like to use my own
palette for the colouring - is there a way to change is without
recompiling the source? I found the file with colourmaps in Veusz dir in
widgets/data/colormaps.dat, but apparently any new colourmaps I add do not
appear in the list of available ones when I start Veusz again. I tried
1.14 beta under Windows XP Pro. It'd be very handy if one could pick the
custom colormaps from this file on startup. Best wishes, and way to go,

They're now defined in the source code. I was going to add a command to add
a new map, but I forgot to do so :-(

You should be able to add a python plugin to work around this:

import veusz.utils
m=veusz.utils.defaultcolormaps
m['myscheme'] = ( (100,100,100,255), (200,200,200,255), (100,100,100,255) )

Where the numbers are the BGRalpha tuples.

You can run this with veusz --plugin myplugin.py or the file add to the
preferences dialog box.

This is a bit of a hack. I didn't intend the plugins to directly modify
veusz code, but it will work until I have some user interface to add
colormaps.

Jeremy



_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss



--
__________________________________________________

Sergey S. Gromov
Max-Planck-Institute for Chemistry
Atmospheric Chemistry Division
Joh.-Joachim-Becher-Weg 27
D-55128 Mainz
E-mail: [email protected]
   Web: http://www.mpch-mainz.mpg.de/~gromov
 Phone: +49 (0)6131 305 437
   Fax: +49 (0)6131 305 436

_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à