Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-12 Thread Werner Smekal
Hi Alan and Hazen, > > An additional format issue I just thought of for these ascii colour > palette > files is line endings. Presumably some of our Windows users will > want to > edit these files directly (since they have no access to -dev tk or the > associated colour palette GUI) so the re

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-10 Thread Maurice LeBrun
On Friday, July 10, 2009 at 13:13:41 (-0400) Hezekiah M. Carty writes: > On Fri, Jul 10, 2009 at 3:53 AM, Andrew > Ross wrote: > > On Fri, Jul 10, 2009 at 12:35:25AM -0700, Alan Irwin wrote: > >> After a week or so delay to make sure we have finalized the API, we should > >> also propagate pls

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-10 Thread Alan W. Irwin
On 2009-07-10 08:53+0100 Andrew Ross wrote: > One further addition would be to explicitly set a palette using these commands > in one of the examples. I don't have a strong preference which. Perhaps > example > 16? Yes. That is the best example for displaying cmap1 palettes that I have found, a

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-10 Thread Hezekiah M. Carty
On Fri, Jul 10, 2009 at 3:53 AM, Andrew Ross wrote: > On Fri, Jul 10, 2009 at 12:35:25AM -0700, Alan Irwin wrote: >> After a week or so delay to make sure we have finalized the API, we should >> also propagate plspal0 and plspal1 to all the other languages > > One further addition would be to expli

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-10 Thread Andrew Ross
On Fri, Jul 10, 2009 at 12:35:25AM -0700, Alan Irwin wrote: > On 2009-07-09 10:18+0100 Andrew Ross wrote: > > > [...]I suggest we go with floating point in the range 0-1 for the > > pos parameter. For consistency we should also ensure we do the same for the > > r, > > g, b values. While we are on

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-10 Thread Alan W. Irwin
On 2009-07-09 10:18+0100 Andrew Ross wrote: > [...]I suggest we go with floating point in the range 0-1 for the > pos parameter. For consistency we should also ensure we do the same for the r, > g, b values. While we are on (since this requires a new file format) perhaps > we > should also add su

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-09 Thread Andrew Ross
On Wed, Jul 08, 2009 at 08:22:00PM -0500, Maurice LeBrun wrote: > On Wednesday, July 8, 2009 at 11:23:23 (+0100) Andrew Ross writes: > > 2) When I tried to create a .pal file I realised that the current file > > format assumes that the position value is an integer in the range 0-100, > > whereas

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-08 Thread Maurice LeBrun
On Wednesday, July 8, 2009 at 11:23:23 (+0100) Andrew Ross writes: > 2) When I tried to create a .pal file I realised that the current file > format assumes that the position value is an integer in the range 0-100, > whereas plplot actually uses a PLFLT in the range 0-1. This might not > be sig

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-08 Thread Hazen Babcock
Andrew Ross wrote: > On Sun, Jul 05, 2009 at 09:15:24PM -0400, Hazen Babcock wrote: >> Hello, >> >> As of v10119 you can now specify the color table to use for color table >> 0 or color table 1 as a command line argument to PLplot. For example: >> >> ./x01c -cmap0 /path/to/cmap0a.pal -dev xcairo >

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-08 Thread Hazen Babcock
Andrew Ross wrote: > On Tue, Jul 07, 2009 at 11:06:40AM -0400, Hazen Babcock wrote: >> Any pointers for using this function? When I try: >> fp = (FILE *)plLibOpenPdfstrm(filename); >> >> instead of: >> fp = fopen(filename, "r"); >> >> I get a segmentation fault at my first attempt to read from the

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-08 Thread Andrew Ross
On Tue, Jul 07, 2009 at 11:06:40AM -0400, Hazen Babcock wrote: > Alan W. Irwin wrote: > > On 2009-07-06 12:26-0400 Hazen Babcock wrote: > > > >> Hezekiah M. Carty wrote: > >>> On Sun, Jul 5, 2009 at 9:15 PM, Hazen Babcock wrote: > As of v10119 you can now specify the color table to use for co

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-08 Thread Andrew Ross
On Sun, Jul 05, 2009 at 09:15:24PM -0400, Hazen Babcock wrote: > > Hello, > > As of v10119 you can now specify the color table to use for color table > 0 or color table 1 as a command line argument to PLplot. For example: > > ./x01c -cmap0 /path/to/cmap0a.pal -dev xcairo > > Will load the cmap

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-07 Thread Alan W. Irwin
On 2009-07-07 11:06-0400 Hazen Babcock wrote: > Alan W. Irwin wrote: >> plLibOpenPdfstrm currently tries a large number of standard locations >> (including the current directory) to find the file specified. > > Any pointers for using this function? When I try: > fp = (FILE *)plLibOpenPdfstrm(filen

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-07 Thread Hazen Babcock
Alan W. Irwin wrote: > On 2009-07-06 12:26-0400 Hazen Babcock wrote: > >> Hezekiah M. Carty wrote: >>> On Sun, Jul 5, 2009 at 9:15 PM, Hazen Babcock wrote: As of v10119 you can now specify the color table to use for color table 0 or color table 1 as a command line argument to PLplot. For

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-06 Thread Alan W. Irwin
On 2009-07-06 12:26-0400 Hazen Babcock wrote: > Hezekiah M. Carty wrote: >> On Sun, Jul 5, 2009 at 9:15 PM, Hazen Babcock wrote: >>> As of v10119 you can now specify the color table to use for color table >>> 0 or color table 1 as a command line argument to PLplot. For example: >>> >> >>> As part

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-06 Thread Hazen Babcock
Hezekiah M. Carty wrote: > On Sun, Jul 5, 2009 at 9:15 PM, Hazen Babcock wrote: >> As of v10119 you can now specify the color table to use for color table >> 0 or color table 1 as a command line argument to PLplot. For example: >> > >> As part of this effort the PLplot API has two new additions: >

Re: [Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-05 Thread Hezekiah M. Carty
On Sun, Jul 5, 2009 at 9:15 PM, Hazen Babcock wrote: > As of v10119 you can now specify the color table to use for color table > 0 or color table 1 as a command line argument to PLplot. For example: > > > As part of this effort the PLplot API has two new additions: > plspal0(filename) - Set the co

[Plplot-devel] cmap0.pal and cmap1.pal support

2009-07-05 Thread Hazen Babcock
Hello, As of v10119 you can now specify the color table to use for color table 0 or color table 1 as a command line argument to PLplot. For example: ./x01c -cmap0 /path/to/cmap0a.pal -dev xcairo Will load the cmap0a.pal file and use the information in that file to initialize PLplot's color ta