Built and tested correcty on a cygwin+vista system.
demo.pl got farther but then died with an error report:

 perl demo.pl
should complain about an invalid "with":
=================================
Gnuplot error: "
gnuplot> plot '-' notitle with bogusstyle
                                          ^
         line 0: expecting 'lines', 'points', 'linespoints', 'dots', 'impulses',
        'yerrorbars', 'xerrorbars', 'xyerrorbars', 'steps', 'fs
" while sending plotcmd "plot '-' notitle with bogusstyle " at
/cygdrive/f/perl/usr_lib/i686-cygwin-thread-multi-64int/PDL/Core.pm
line 196
        PDL::Core::barf('Gnuplot error: "\x{a}gnuplot> plot \'-\'
notitle with bogusstyle ...') called at lib/PDL/Graphics/Gnuplot.pm
line 831
        
PDL::Graphics::Gnuplot::testPlotcmd('PDL::Graphics::Gnuplot=HASH(0x18e9470)',
'plot \'-\' notitle with bogusstyle ', '10 10 \x{a}e\x{a}') called at
lib/PDL/Graphics/Gnuplot.pm line 349
        PDL::Graphics::Gnuplot::plot('with', 'bogusstyle',
'PDL=SCALAR(0x18e90c8)') called at (eval 85) line 1
        eval 'plot(with => \'bogusstyle\', $x);

;' called at demo.pl line 138
=================================


Gnuplot 4.4.0 gets confused about binary input. PDL::Graphics::Gnuplot
should detect this and quit after a few seconds:
=================================
Gnuplot process no longer responding. This is likely a bug in
PDL::Graphics::Gnuplot
and/or gnuplot itself. Please report this as a PDL::Graphics::Gnuplot bug.
 at /cygdrive/f/perl/usr_lib/i686-cygwin-thread-multi-64int/PDL/Core.pm line 196
        PDL::Core::barf('Gnuplot process no longer responding. This is
likely a bug in...') called at lib/PDL/Graphics/Gnuplot.pm line 886
        
PDL::Graphics::Gnuplot::_checkpoint('PDL::Graphics::Gnuplot=HASH(0x18e9560)',
'printwarnings') called at lib/PDL/Graphics/Gnuplot.pm line 375
        PDL::Graphics::Gnuplot::plot('3d', 1, 'binary', 1, 'title',
'Paraboloid heat map', 'extracmds', 'set view 0,0', 'with', ...)
called at lib/PDL/Graphics/Gnuplot.pm line 929
        PDL::Graphics::Gnuplot::plot3d('binary', 1, 'title',
'Paraboloid heat map', 'extracmds', 'set view 0,0', 'with', 'image',
'PDL=SCALAR(0x18e93f8)', ...) called at (eval 86) line 2
        eval '  my $xy = zeros(21,21)->ndcoords - pdl(10,10);
  plot3d(binary => 1,
         title  => \'Paraboloid heat map\',
         extracmds => \'set view 0,0\',
         with => \'image\', inner($xy, $xy));

;' called at demo.pl line 147
=================================

Are all the gnuplot windows supposed to stay open with their
own process?  E.g.,

$ ps
      PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
     4908       1    4344       5680    4 307988 09:06:12
/usr/lib/gnuplot/4.4/gnuplot_x11
     5552       1    4344       5624    4 307988 09:06:12
/usr/lib/gnuplot/4.4/gnuplot_x11
     2168       1    4344       5628    4 307988 09:06:13
/usr/lib/gnuplot/4.4/gnuplot_x11
     5824       1    4344       4452    4 307988 09:06:13
/usr/lib/gnuplot/4.4/gnuplot_x11
      704       1    4344       5496    4 307988 09:06:13
/usr/lib/gnuplot/4.4/gnuplot_x11
     3664       1    4344       5708    4 307988 09:06:14
/usr/lib/gnuplot/4.4/gnuplot_x11
     5696       1    4344       1428    4 307988 09:06:14
/usr/lib/gnuplot/4.4/gnuplot_x11
     3172       1    4344       4608    4 307988 09:06:15
/usr/lib/gnuplot/4.4/gnuplot_x11
     5688       1    4344       5600    4 307988 09:06:15
/usr/lib/gnuplot/4.4/gnuplot_x11
     5512       1    4344       4448    4 307988 09:06:18
/usr/lib/gnuplot/4.4/gnuplot_x11
     3052       1    4344       2368    4 307988 09:06:19
/usr/lib/gnuplot/4.4/gnuplot_x11
     4404       1    4344       4636    4 307988 09:06:19
/usr/lib/gnuplot/4.4/gnuplot_x11
     1468    3744    1468       3576    4 307988 09:08:42 /usr/bin/ps



On Sat, Jul 9, 2011 at 9:02 PM,  <[email protected]> wrote:
> Hi all.
>
> Thanks to everybody who tried out an earlier version of
> PDL::Graphics::Gnuplot and gave me feedback. I made some major
> improvements, and a new version is ready to be tested
> ( http://github.com/dkogan/PDL-Graphics-Gnuplot ). Improvements include
>
> 1. Much better error detection/handling. The module now reads replies
> from the child gnuplot process to make sure nothing is breaking.
> Anything broken is barfed back to the user.
>
> 2. Optional binary data formatting. It's now possible for data to be
> sent to gnuplot in binary instead of ASCII. This is a significant
> performance improvement, but due to some bugs in gnuplot itself, this
> doesn't work for some fancier plots. This is thus disabled by default,
> but can be turned on by simply passing an option to plot().
>
> 3. Better automatic testing.
>
> 4. Better documentation
>
>
> Since gnuplot isn't really designed to be talked-to by programs,
> getting the error detection (#1 above) working well was tricky, and may
> still have bugs.
>
> Everything works on my machine (Debian GNU/Linux, gnuplot 4.4.0). In
> theory supporting IPC::Open3 and IO::Select is all that's required to
> make this work, so all major platforms should be supported. I'll be
> shocked if at least some work isn't required to make this truly
> platform-independent, but it should be doable. I'll help as much as I
> can, but somebody else will have to spearhead the effort to support
> each of Win32, osx, etc.
>
> Comments welcome!
>
> dima
>
> _______________________________________________
> 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