Hello John,
On 20.06.06, John Owens wrote:
> --- Joerg Lehmann <[EMAIL PROTECTED]> wrote:
> > I understand from the other mail you sent me that the color schemes
> > are not very different with varying number of total colors, so the
> > question is whether one really needs to support that instead of
> > just defining the most detailed palette.
>
> Unequivocally they are different enough that we would want to support
> a variable number of colors separately within a palette. Compare, say,
> the spectral scheme's 3-color and 6-color variants:
>
> [ rgb(0.988235, 0.552941, 0.349020) , rgb(1.000000, 1.000000,
> 0.749020) , rgb(0.600000, 0.835294, 0.580392) , ],
>
> [ rgb(0.835294, 0.243137, 0.309804) , rgb(0.988235, 0.552941,
> 0.349020) , rgb(0.996078, 0.878431, 0.545098) , rgb(0.901961, 0.960784,
> 0.596078) , rgb(0.600000, 0.835294, 0.580392) , rgb(0.196078, 0.533333,
> 0.741176) , ],
How many variants of a certain scheme do typically exist? If there are
not too many, one could simply make the maximum number of colors
explicit:
palette.spectral_3 = palette([c1, c2, c3])
palette.spectral_6 = palette([c1, c2, c3, c4, c5, c6])
...
This would also solve the questions you raised in your previous mail by
leaving it up to the user what he wants.
Maybe one could also introduce the palette code I posted initially in
addition (under a different name) to the changelist variant. André
already told me that he doesn't like it (because he wants a fixed number
of colors [1]), but thinking about it again, I realized that in fact the
number of colors would also be fixed in the more complicated scheme (of
course ;-))
Jörg
[1] This would allow us for instance to use an indexed color space in
PostScript and PDF.
_______________________________________________
PyX-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-devel