[Plplot-devel] problem changing background colour with mem driver

2009-06-15 Thread David Gillard
I'm new to plplot. I noticed that the background color is not being changed when the device is set to 'mem'. So far as I can tell, this is because pl_bop isn't doing anything; look at plD_bop_mem in drivers/mem.c . So I changed plD_bop_mem as follows: void plD_bop_mem(PLStream *pls) { int i;

[Plplot-devel] plotting to a subregion of memory

2009-06-19 Thread David Gillard
I've been working with the mem driver. I need to be able to plot some data to a subregion of an image in memory. Suppose for instance that you've set the image memory to have dimensions 500 x 500, and you want to plot to a 200 x 200 subregion of that memory with top left coordinate (60, 100).

[Plplot-devel] plssubmem patch

2009-08-26 Thread David Gillard
to. Clipping is handled in the case where the subregion falls outside the allocated memory. The major modification is to the mem driver. Other pl functions are not impacted. -- David Gillard, BA, BSc Software Developer Pangeo Subsea www.p