In PGPLOT, color index 0 is background and 1 is foreground. To change the two you'd use the PGPLOT function pgscr():

use PGPLOT;
use PDL::Graphics::PGPLOT

dev 'file.png/png';
pgscr(0, 1, 1, 1); # set bg to white
pgscr(1, 0, 0, 0); # set fg to black

On 07/01/2011 03:21 PM, greg aiken wrote:
I am new to PDL & PGPLOT. Yesterday I just installed this for Windows.

I have figured out how to create and plot my own data into a
dev=("/PNG") *.png file.

However, when this file gets created the background is Black and the
type and plot axis is White.

This consumes a great amount of ink when printed on my printer.

Ive executed: pdldoc PDL::Graphics::PGPLOT::Window

To read the online help about PGPLOT's Window options, but I cant seem
to find the information I need here...

If someone can please provide a brief code fragment, t his would be very
helpful to me.

Thanks in advance...



_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to