On 2009-08-18 18:21-0500 Hezekiah M. Carty wrote: > On Tue, Aug 18, 2009 at 4:45 PM, Hezekiah M. > Carty<hezekiahca...@users.sourceforge.net> wrote: >> Is it worth adding a PLplot cmake/compile-time option to change the >> default color map 0 to this or some other alternate? This would allow >> someone who wants white backgrounds to be the rule rather than the >> exception to avoid having to set the palette for each plot. > > I have attached an initial patch which adds cmake configuration > support for enabling the alternate cmap0 by default. One can pass > "-DPL_ALT_CMAP0=ON" to cmake to use to alternate color map 0 colors by > default. If PL_ALT_CMAP0 is set to OFF or is left unset (it defaults > to OFF), the current default (black background) color map 0 palette is > used.
I prefer a palette file approach rather than hard-coded approach. See my previous post on this (which crossed with your latest post) where I give more details of how I hope this evolves. With regard to your cmake question, I think #define (rather than cmakedefine) in config.h.cmake is the way to go. See the first part of that file for how #defines are configured corresponding to various CMake variables. In these cmap[01] cases, the variables would be strings that are specified as CMake options with default values of cmap[01]_default.pal (i.e., used if the user does not specify those options). 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 __________________________ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel