Hi Bruce,

Thanks for your help. I made the changes you suggested and now get a different message:

Global symbol "$data_object" requires explicit package name at LoadData.pl line 8.
Execution of LoadData.pl aborted due to compilation errors.

The script follows.

#!/usr/bin/perl

use Demeter qw(:ui=screen);


my $data = Demeter::Data -> new(file => "data/fe.060",

name => 'test',

);

$data -> plot('E');

$data_object -> pause;


Any further help is appreciated.


Thanks,

George



On Sat, Apr 12, 2014 at 4:40 PM, Bruce Ravel <bravel@bnl.gov> wrote:

It would, of course, help to see the script, but I can guess what the issue is.

Try doing

  use Demeter qw(:ui=screen);

at the top of the script, and

  $data_object -> pause;

before it exits.

The specific message is issued because the perl script ended while the pipe to the gnuplot process was still open.  That doesn't happen if you put in a pause.  And you get to look at the plot before it vanishes!

B


On 04/11/2014 06:45 PM, George Sterbinsky wrote:
Hello,

I am trying to learn to use Demeter following The Demeter Programmer
Guide. When I attempt to run the first example script in the importing
data section I get the following error message:

Graphics::GnuplotIF (object 1): problem closing communication to gnuplot

I also see the plot window flash open and then closed on my screen.

I am using  perl 5.16.1 on  mac OSX 10.8.5. If anyone can provide any
suggestions as to how I might correct this please let me know.

Thank you,
George


_______________________________________________
Ifeffit mailing list
Ifeffit@millenia.cars.aps.anl.gov
http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit



--
 Bruce Ravel  ------------------------------------ bravel@bnl.gov

 National Institute of Standards and Technology
 Synchrotron Science Group at NSLS --- Beamlines U7A, X24A, X23A2
 Building 535A
 Upton NY, 11973

 Homepage:    http://xafs.org/BruceRavel
 Software:    https://github.com/bruceravel
_______________________________________________
Ifeffit mailing list
Ifeffit@millenia.cars.aps.anl.gov
http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit