mirror of
https://asciireactor.com/otho/psdlag-agn.git
synced 2024-11-22 01:05:07 +00:00
added basic gnuplot script
This commit is contained in:
parent
a9d6c673d1
commit
e55035efae
26
scripts/basic_plot.pl
Executable file
26
scripts/basic_plot.pl
Executable file
@ -0,0 +1,26 @@
|
||||
#!/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`;
|
Loading…
Reference in New Issue
Block a user