On 7/1/11 3: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...
There's a bunch of options that can be set in the dev() call, as
described in
http://pdl.perl.org/PDLdocs/Graphics/PGPLOTOptions.html
http://pdl.perl.org/PDLdocs/Graphics/PGPLOT/Window.html#alphabetical_listing_of_standard_options
The Hard* set are what you want to change, so something like
dev("/png", { HardAxisColor => .., HardColor => ... });
although my PDL/PGPLOT is rusty so I may be missing a trick or two
(since there's an interesting note in one of these about how hardcolor
may not be used).
As with Craig I'd suggest trying plplot if you can get it installed.
HTH,
Doug
--
-------------------------------------------------------------------
Doug Burke | http://hea-www.harvard.edu/~dburke/
Harvard-Smithsonian | Email: [email protected]
Center for Astrophysics | Phone: (617) 496 7853
60 Garden Street MS-2 | Fax: (617) 495 7356
Cambridge, MA 02138 | Office: B-440
-------------------------------------------------------------------
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl