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<hbabc...@mac.com> 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: >>> >> <cut> >>> As part of this effort the PLplot API has two new additions: >>> plspal0(filename) - Set the color table 0 palette based on the cmap0.pal >>> format file specified by filename. >>> plspal1(filename) - Set the color table 1 palette based on the cmap1.pal >>> format file specified by filename. >>> >>> Example .pal format files can be found in plplot-source/bindings/tk. >>> Hopefully this addition will make it easier for people to use their >>> preferred color scheme. >> >> Hazen, >> >> Thank you for putting these functions together. Are the names set and >> ready to be propagated to other language bindings? > > I'd wait a week or two to see if anyone complains. > >> Where should new color palettes be placed in the PLplot source tree? > > I think that they are going to go into a new directory called cmaps in > the root directory.
Hi Hazen: Much thanks for this effort which is going to make colour management much easier for PLplot. Currently plspal0 and plspal0 simply fopen the specified file with no checks on whether it exists. One obvious way to deal with that issue is to use the same function (plLibOpenPdfstrm) we use for opening map files and also our traditional Hershey font files. plLibOpenPdfstrm currently tries a large number of standard locations (including the current directory) to find the file specified. If you go that route, then everything will magically work without having to include the path of the colour palette file names that are specified on the command line. Of course, to answer Hez's question, you would have to place our "official" palette files in the data directory in the source tree and install them in DATA_DIR (which currently corresponds to $prefix/share/plplot5.9.4) in the install tree. But the current directory search by plLibOpenPdfstrm should work well for the casual user who is just trying out some palette files of his own. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel