psdlag-agn/scripts/basic_plot.pl

27 lines
348 B
Perl
Raw Normal View History

2016-06-20 20:29:28 +00:00
#!/usr/local/bin/perl
use feature 'say';
#use autodie qw(:all);
=pod
open my $GP, '|-', 'gnuplot';
print {$GP} <<'__GNUPLOT__';
set terminal x11
# set output "test.png"
set xrange [-5:5];
plot sin(x);
pause -1;
__GNUPLOT__
close $GP;
=cut
say "Press any key to exit.";
my $a=<>;
system("gnuplot file");
#`gnuplot file`;