Hmmm...

I hadn't considered using a table file directly, but you certainly can.  The 
"topcmds", "extracmds", and "bottomcmds" plot options allow you to specify 
gnuplot commands directly into the command list sent to gnuplot by P::G::G -- 
you can send a complete gnuplot script in any of those options if you choose 
to, since they merely ship their contents directly to gnuplot with no checking. 
 I would stick the "plot 'cont.dat'" into your bottomcmds to make it happen at 
the bottom of the stack.

There's no built-in way for P::G::G to tell gnuplot to plot from a file -- it's 
designed around exporting data directly from PDL, so you have to use the escape 
hatches if you want to do that.

Cheers,
Craig



On Feb 11, 2013, at 3:03 PM, Kaj Wiik <[email protected]> wrote:

> Hi!
> 
> Is there a way to plot from a file with P::G::G?
> 
> I know, your first question is 'why on earth would you want to do
> that?', I am attempting to do something along these lines:
> 
> http://gnuplot-tricks.blogspot.fi/2009/07/maps-contour-plots-with-labels.html
> 
> I.e. in gnuplot script:
> 
> set contour base
> set cntrparam level incremental -3, 0.5, 3
> unset surface
> set table 'cont.dat'
> splot f(x,y)
> unset table
> 
> plot 'cont.dat'
> 
> Plotting to file is easy but the last line seems to be difficult to do
> with P::G::G.
> 
> Thanks,
> Kaj
> 
> _______________________________________________
> 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