afalsename has asked for the wisdom of the Perl Monks concerning the following question:
Oh great a wise perl monks please aid a young student in the ways of perl wisdom.
Anyway, what I want to do is export (output) a pgplot to something like an EPS, PDF or Jpeg. If anyone could tell me how to do this with my code, that would be wonderful. Or even better would be to send a link where I could learn. However please realize that I am a complete noob and perl programing and thus far the websites I've found have been unintelligible to me.
Relavent code:
...srand; use PDL; use PDL::Graphics::PGPLOT; use PGPLOT; use Exporter; $id=dev($^O =~ /MSWin32/ ? '/GW' : '/XSERVE'); $ENV{PGPLOT_XW_WIDTH}=0.5;
hold(bin($distributionx, $distributiony)); hold(line($distributionx,$predictiony,{COLOR=>RED})); line($distributionx,1000*$diffy,{COLOR=>purple}); #this is what I'd like to export, #all in one graph
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Export Plots
by Corion (Patriarch) on Sep 23, 2010 at 15:16 UTC | |
|
Re: Export Plots
by syphilis (Archbishop) on Sep 23, 2010 at 23:30 UTC | |
|
Re: Export Plots
by ambrus (Abbot) on Sep 24, 2010 at 13:01 UTC |