On Mon, Jun 15, 2009 at 2:25 PM, David Gillard<dgill...@pangeosubsea.com> wrote: > I'm new to plplot. I noticed that the background color is not being changed > when the device is set to 'mem'.
(resending to the mailing list) Welcome to PLplot! The mem driver leaves the provided memory space as-is in case this memory already contains useful information. While most other PLplot drivers will "clear" the entire plot surface to the background color as part of their initialization, the mem driver leaves the provided block of memory untouched. As an example use case, one could load an image from a PNG or JPEG then provide that image data (if it is appropriately formatted) as the memory block for the mem driver. Any plotting would be done on top of that initial image. A similar process and reasoning is used for the extcairo device as well if I recall correctly. The plclear function may do what you want, without requiring modifications to the PLplot source. It effectively draws over the entire plot surface for the current stream in the background color. I hope this helps, Hez -- Hezekiah M. Carty Graduate Research Assistant University of Maryland Department of Atmospheric and Oceanic Science ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel