First thing to do is to check which drivers you have at your disposal:
# From PGPLOT-2.20 test suite use PGPLOT; pgqndt($ndrivers); print "Testing pgqdt() - $ndrivers drivers found...\n"; for $n (1..$ndrivers) { pgqdt($n,$type,$tlen,$descr,$dlen,$inter); print "$n: $type $tlen $descr $dlen $inter\n"; }
For some examples, give the PGPLOT test suite a run, and take a look at the code (in test1.p, test2.p, ..., test12.p) that creates the 12 images.
Just download the source, extract it some location, cd to the PGPLOT-2.20 directory, and run perl test.pl

There's also a test script in the PDL source distro (t/pgplot.t) that you could take a look at. It uses m51.fits (also in the source distro) to create some images. You'll need to set the DISPLAY environment variable to a true value (eg 1) to run that script. If you're on Windows, you'll probably want to set the PGPLOT_DEV environment variable to /PNG (assuming you're happy enough to have the graphs/images written to png files).

I don't know if GD is a viable alternative to PGPLOT for you. You might find the coding a little simpler with GD, and it's certainly easier to get help with GD (as it's much more widely used than PGPLOT).

Cheers,
Rob

In reply to Re: Export Plots by syphilis
in thread Export Plots by afalsename

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.