pax_global_header00006660000000000000000000000064145553235640014526gustar00rootroot0000000000000052 comment=96ac271cdab4d4e68ca29d5a27f9e363a6d6d3c6 feedgnuplot-1.62/000077500000000000000000000000001455532356400137725ustar00rootroot00000000000000feedgnuplot-1.62/.gitignore000066400000000000000000000000031455532356400157530ustar00rootroot00000000000000*~ feedgnuplot-1.62/Changes000066400000000000000000000242741455532356400152760ustar00rootroot00000000000000feedgnuplot (1.62) * I explicitly ignore all lines that have '-' values These may come from vnl-filter -p "dx=diff(x)" ... output. For instance, this plot is broken before this patch: (echo '# x'; seq 5) | vnl-filter --noskipempty -p 'd=diff(x)' \ | feedgnuplot --lines -- Dima Kogan Sat, 27 Jan 2024 17:01:18 -0800 feedgnuplot (1.61) * #! line uses /usr/bin/env to work with nonstandard installations * Added --cblabel to label the color bar * Added --cbmin, --cbmax * --zmin,--zmax,--zlabel are always sent, if requested * Plotting with no STDIN data works -- Dima Kogan Fri, 04 Mar 2022 14:45:36 -0800 feedgnuplot (1.60) * Test suite fix: we have the right number of tests -- Dima Kogan Fri, 27 Aug 2021 10:46:18 -0700 feedgnuplot (1.59) * --timefmt --histogram work together -- Dima Kogan Thu, 22 Jul 2021 17:52:08 -0700 feedgnuplot (1.58) * Added --using, --usingall * Added --cmds as a synonym for --extracmds -- Dima Kogan Thu, 11 Mar 2021 16:24:46 -0800 feedgnuplot (1.57) * Added --xticlabels to label the x-axis tics from the data * Added --equation-above and --equation-below to control the equation drawing sequence -- Dima Kogan Sun, 21 Feb 2021 13:56:23 -0800 feedgnuplot (1.56) * Updated default hardcopy settings -- Dima Kogan Wed, 03 Feb 2021 14:42:15 -0800 feedgnuplot (1.55) * Fixed regression introduced in 1.54: --style now correctly overrides --with -- Dima Kogan Mon, 20 Jul 2020 15:51:23 -0700 feedgnuplot (1.54) * Added --every and --everyall to decimate the input data * --timefmt can be used with --histogram -- Dima Kogan Fri, 17 Apr 2020 14:06:55 -0700 feedgnuplot (1.53) * Full support for all 4 axes. Added --x2... -- Dima Kogan Wed, 08 Jan 2020 18:55:29 -0800 feedgnuplot (1.52) * Added --squarexy and --square-xy as synonyms to --square_xy -- Dima Kogan Sun, 25 Aug 2019 15:32:37 -0700 feedgnuplot (1.51) * Added .gp "terminal" to create self-plotting gnuplot files -- Dima Kogan Sat, 29 Sep 2018 10:56:30 -0700 feedgnuplot (1.50) * Script waits for the plot window to close before exiting Instead of sleeping forever. This is really nice! I no longer need to quit the plot window AND then C-c. Quitting the plot window is now sufficient * by default --image sets range noextend * tab-completion knows about the fnormal distribution -- Dima Kogan Fri, 24 Aug 2018 13:11:05 -0700 feedgnuplot (1.49) * --vnl now works with plots that have rangesize > 1 * zsh completion: --xlen argument isn't optional -- Dima Kogan Fri, 16 Mar 2018 13:52:28 -0700 feedgnuplot (1.48) * --vnlog works properly with --domain -- Dima Kogan Sat, 24 Feb 2018 12:33:50 -0800 feedgnuplot (1.47) * Fixed typo. Everything is un-broken now -- Dima Kogan Fri, 23 Feb 2018 10:21:13 -0800 feedgnuplot (1.46) * Added --tuplesize and --tuplesizeall as alternatives to --rangesize and --rangesizeall. Both forms are supported. * Vnlog integration -- Dima Kogan Thu, 22 Feb 2018 23:37:54 -0800 feedgnuplot (1.45) * zsh completion: --hardcopy, --image suggest filenames * --image now produces a nicer legend: just the filename * --curvestyle now overrides --curvestyleall - This is a bug fix * The version is now treated as a string not as a number - So "1.40" is distinct from "1.4" -- Dima Kogan Sun, 29 Oct 2017 13:56:28 -0700 feedgnuplot (1.44) * --image draws its output beneath everything else -- Dima Kogan Tue, 20 Jun 2017 16:44:30 -0700 feedgnuplot (1.43) * Added --image -- Dima Kogan Mon, 19 Jun 2017 13:12:38 -0700 feedgnuplot (1.42) * Data can now come from STDIN or files on the cmdline. This fixes a regression. Self-plotting data files work again -- Dima Kogan Fri, 31 Mar 2017 15:38:47 -0700 feedgnuplot (1.41) * Histograms: --xlen can coexist with --xmin/--xmax * Histograms: work as expected with --xlen and --monotonic * Histograms: better sanity checking of options -- Dima Kogan Fri, 24 Feb 2017 23:42:28 -0800 feedgnuplot (1.40) * If the options couldn't be parsed I don't dump the whole manpage * --style and --rangesize can now take a comma-separated list of IDs * 'any' is from List::MoreUtils, not List::Util * the sleep-forever delay at end is now > 1000 days -- Dima Kogan Fri, 25 Nov 2016 14:45:06 -0800 feedgnuplot (1.39) * by default, histograms are plotted in expected ways -- Dima Kogan Sat, 15 Oct 2016 20:45:15 -0700 feedgnuplot (1.38) * hardcopy defaults: - no enhanced text mode - larger font size -- Dima Kogan Wed, 27 Jul 2016 22:15:11 -0700 feedgnuplot (1.37) * At the end of a streaming plot, include the last chunk of data * Added --equation to the completions -- Dima Kogan Fri, 01 Jan 2016 08:09:43 -0800 feedgnuplot (1.36) * Added --equation to plot symbolic equations -- Dima Kogan Fri, 13 Nov 2015 11:08:26 -0800 feedgnuplot (1.35) * replaced a 'say' with 'print'. Should work better with ancient perls * an "exit" command now has effect even with triggered-only replotting * More sophisticated handling of termination conditions: - Without --exit, we always end up with an interactive plot when the input data is exhausted or when the user sends a ^C to the pipeline - When streaming, the first ^C does not kill feedgnuplot * Removed threading -- Dima Kogan Sun, 01 Nov 2015 12:50:33 -0800 feedgnuplot (1.34) * Fix for "Use of implicit split to @_ is deprecated". Thanks to Corey Putkunz * Declaring feedgnuplot as a package to let MetaCPAN index this distribution -- Dima Kogan Wed, 14 May 2014 00:45:24 -0700 feedgnuplot (1.33) * fixed incorrect plotting of --timefmt --rangesize plots -- Dima Kogan Thu, 06 Feb 2014 23:17:21 -0800 feedgnuplot (1.32) * Added --rangesize and --rangesizeall. Different curves can now plot different-size tuples -- Dima Kogan Wed, 05 Feb 2014 13:57:58 -0800 feedgnuplot (1.31) * Test suite requires gawk to get strftime() -- Dima Kogan Sat, 25 Jan 2014 20:49:38 -0800 feedgnuplot (1.30) * Added --with, --set, --unset, --style, --styleall -- Dima Kogan Fri, 24 Jan 2014 15:38:07 -0800 feedgnuplot (1.29) * added CPAN meta-data to require IPC::Run at build time -- Dima Kogan Wed, 04 Dec 2013 21:12:40 -0800 feedgnuplot (1.28) * Minor POD update -- Dima Kogan Wed, 04 Dec 2013 02:01:05 -0800 feedgnuplot (1.27) * Disabled tests that can fail on some arches (can be re-enabled with environment variable) * Removed sample debianization; this program is now in Debian proper -- Dima Kogan Tue, 03 Dec 2013 23:37:40 -0800 feedgnuplot (1.26) * Minor POD fixes -- Dima Kogan Sun, 20 Oct 2013 01:17:57 -0700 feedgnuplot (1.25) * Added test suite * Added initial support for --timefmt. Currently time/date data is supported only at the x-axis domain * Added --exit option for force feedgnuplot to return even if gnuplot may not yet be done rendering (patch by Eric Schulte) * Reformatted the documentation * y2-axis curves no longer have a thicker line by default * --hardcopy now handles piped output (gnuplot 'set output |process' syntax) -- Dima Kogan Sun, 20 Oct 2013 00:09:36 -0700 feedgnuplot (1.24) * Fixed regression in --monotonic. This works again now * moved POD back into the main source file. This fixes the broken usage messages * added --version -- Dima Kogan Fri, 08 Feb 2013 01:53:47 -0800 feedgnuplot (1.23) * --extracmds no longer accepts comma-separated lists This was needed because a command can have a comma * --curvestyle no longer adds on top of --curvestyleall -- Dima Kogan Sat, 29 Sep 2012 16:29:38 -0700 feedgnuplot (1.22) * removed --size option -- Dima Kogan Mon, 03 Sep 2012 08:33:26 -0700 feedgnuplot (1.21) * removed the POD from the script to its own file * fixed regression to allow no given extracmds, histogram or y2 options -- Dima Kogan Sun, 02 Sep 2012 23:52:21 -0700 feedgnuplot (1.20) * no longer hardcoding 'x11' as the default terminal * added histogram support * generic terminals can now be requested * --extracmds, --histogram, --y2 can now take comma-separated lists -- Dima Kogan Fri, 31 Aug 2012 01:35:50 -0700 feedgnuplot (1.19) * added --geometry option to specify plot dimensions -- Dima Kogan Sat, 11 Feb 2012 21:04:42 -0800 feedgnuplot (1.18) * data-ids can now include characters such as -. Any non-whitespace works -- Dima Kogan Tue, 27 Dec 2011 16:47:36 -0800 feedgnuplot (1.17) [ Dima Kogan ] * POD: removed -Winteractive, since this was apparently a mawk-ism * added zsh and bash completions [ Hermann Schwarting ] * add build dependency libtest-script-run-perl -- Dima Kogan Sun, 20 Nov 2011 19:17:22 -0800 feedgnuplot (1.16) * Some POD fixes -- Dima Kogan Fri, 11 Nov 2011 00:10:18 -0800 feedgnuplot (1.15) * Renamed main script from feedGnuplot to feedgnuplot -- Dima Kogan Sun, 16 Oct 2011 11:58:15 -0700 feedgnuplot (1.14) * added 'clear' command, documented commands -- Dima Kogan Sun, 22 May 2011 15:25:28 -0700 feedgnuplot (1.13) * Better streaming plot control -- Dima Kogan Tue, 26 Apr 2011 14:24:09 -0700 feedgnuplot-1.62/INSTALL000066400000000000000000000012261455532356400150240ustar00rootroot00000000000000If running on a Debian-based OS (this includes Ubuntu), it is highly recommended to install this program as a package. In Debian and Ubuntu, feedgnuplot is in the official repos, so all you need to do is sudo apt-get install feedgnuplot Without a package, an installation can be done with perl Makefile.PL prefix=/usr/local make make install This installs feedgnuplot to /usr/local. Adjust the paths as required. Also, note that this is a self-contained utility. Usually running from the tree works just fine: git clone https://github.com/dkogan/feedgnuplot.git cd feedgnuplot/bin ./feedgnuplot ... feedgnuplot-1.62/LICENSE000066400000000000000000000002511455532356400147750ustar00rootroot00000000000000This library is distributed under the terms of the GNU GPL: http://www.gnu.org/licenses/gpl.html or the Artistic license: http://dev.perl.org/licenses/artistic.html feedgnuplot-1.62/MANIFEST000066400000000000000000000001141455532356400151170ustar00rootroot00000000000000Makefile.PL MANIFEST bin/feedgnuplot t/manifest.t t/plots.t Changes LICENSE feedgnuplot-1.62/Makefile.PL000066400000000000000000000036541455532356400157540ustar00rootroot00000000000000use strict; use warnings; use ExtUtils::MakeMaker; sub parseversion { # grab the version number from the changelog. I look for lines line # # libpackage-perl (0.02) # # I parse out the 0.02 part open DCH, '<', 'Changes' or die "Couldn't open 'Changes'"; my ($version) = =~ /^\S+ \s* \( ([0-9\.]+) \)/x or die "Couldn't parse version from 'Changes'"; close DCH; # The version is also stored in the script itself. Here I extract that version # number and make sure the two match open PL, '<', 'bin/feedgnuplot' or die "Couldn't open 'bin/feedgnuplot'"; while() { if( /VERSION = '([0-9\.]+)'/ ) { if ( $1 ne $version ) { die "Version mismatch. Changes says version is '$version', but 'bin/feedgnuplot' says it is '$1'"; } return $version; } } die "Couldn't parse version from 'bin/feedgnuplot'"; } sub MY::libscan { package MY; my ($self, $file) = @_; # Don't install any symlinks (i.e. README.pod) return undef if -l $file; return $self->SUPER::libscan ($file); } # I want my manpage to go into the man section '1', NOT '1p'. Here I add a # snippet to the end of the generated Makefile to force this sub MY::postamble { return "MAN1EXT := 1\n"; } WriteMakefile ( NAME => 'feedgnuplot', AUTHOR => q{Dima Kogan }, VERSION => parseversion(), ($ExtUtils::MakeMaker::VERSION >= 6.3002 ? ('LICENSE' => 'perl') : ()), PL_FILES => {}, EXE_FILES => [ 'bin/feedgnuplot' ], BUILD_REQUIRES => { 'String::ShellQuote' => 0, 'List::MoreUtils' => 0, 'IPC::Run' => 0}, dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'feedgnuplot-*' }, ); feedgnuplot-1.62/README.pod000066400000000000000000001167431455532356400154470ustar00rootroot00000000000000=head1 TALK I just gave a talk about this at L. Here are the L