Does putting a backslash after with lines, work? That should concatenate the lines in one command.
Alternatively you could just pipe your script directly into the gnuplot process by open GP, "|gnuplot 2>/dev/null "; print GP "plot $file using 1:2 w l\n"; or something like that. and foregoing P::G::G altogether, which is what I have done until now. Depending on what else you need P::G:::G for, of course. Ingo On 02/13/2013 12:48 AM, Kaj Wiik wrote: > On Tue, Feb 12, 2013 at 10:20 PM, Craig DeForest > <[email protected]> wrote: > >> 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. > Yes, I tried that. Well, this may be a special case: I am trying to > plot contours of scattered (non-gridded) data. To see what is > happening, I try to overlay contours and the non-interpolated points. > Overlaying is the thing that does not work at all, here is what I > tried: > gplot({extracmds => 'plot \'table.dat\' with lines,', bottomcmds => > 'with points'}, $x, $y); > > I guess there is a line feed at the end of extracmds that prevent this > working (of course it is needed in the intended use...). > > Perhaps it is best to plot also the points from a file and in fact do > the whole thing outside PDL :-). > > Why I always end up trying to do exactly the one thing that is not > possible with the tool I choose to use :-D....? > > 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
