|
From: Petr M. <mi...@ph...> - 2003-11-04 07:05:27
|
> as a function that prints its output. So the command sequence > would become > set print '<palettefile>' > print palette(n) Result of palette(n) would be a matrix, not a number, so I don't like this syntax. > As to the float/int option, can't we just write both into the file? > Each line would have an integer triplet and a float triplet. > So output of 'print palette(n)' would be 8 numbers per line: > <index> <grey value> <r> <g> <b> <ir> <ig> <ib> Only one triplet has to be saved into the file so that 3rd party applications can read that gnuplot palette. That was the main idea for implementing this feature (gnuplot palette models are really extremely powerful). BTW, there are also binary palette ".lut" files accepted by some applications, e.g. ImageJ. Does somebody know their structure? --- Petr Mikulik |