From aedbc28afea5d41d38284b79f93e3ed7a31337a2 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Mon, 9 Apr 2018 22:44:13 -0700 Subject: [PATCH 1/5] by default --image sets range noextend This is usually what I want --- bin/feedgnuplot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index 6e159ec..706ca6f 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -465,10 +465,13 @@ sub interpretCommandline { # images generally have the origin at the top-left instead of the # bottom-left, so given nothing else, I flip the y axis - if( !defined $options{ymin} && !defined $options{ymax} && + if( !defined $options{xmin} && !defined $options{xmax} && + !defined $options{ymin} && !defined $options{ymax} && + ! any { /^ *xrange\b/ } @{$options{set}} && ! any { /^ *yrange\b/ } @{$options{set}} ) { - push @{$options{set}}, "yrange [:] reverse"; + push @{$options{set}}, "xrange [:] noextend"; + push @{$options{set}}, "yrange [:] reverse noextend"; } if ( ! -r $options{image} ) From 69285d7df13296f7b8b5872e537a1de31d603b43 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Mon, 9 Jul 2018 18:38:56 -0700 Subject: [PATCH 2/5] fixed typo in docs --- bin/feedgnuplot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index 706ca6f..a986e88 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -1413,7 +1413,7 @@ points palette>), variable sizes (C), labels and so on. The feedgnuplot tool itself does not know about all these intricacies, but they can still be used, by specifying the specific style with C<--style>, and specifying how many values are needed for each point with any of -C<--rangesizeall, C<--tuplesizeall>, C<--rangesize>, C<--tuplesize>. These +C<--rangesizeall>, C<--tuplesizeall>, C<--rangesize>, C<--tuplesize>. These options are required I for styles not explicitly supported by feedgnuplot; supported styles do the right thing automatically. From 9237811ed026e1925ced3384f08323f9bc7ea5e4 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Thu, 23 Aug 2018 22:31:14 -0700 Subject: [PATCH 3/5] 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 --- bin/feedgnuplot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index a986e88..47eaf23 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -990,7 +990,10 @@ sub mainThread # we persist gnuplot, so we shouldn't need this sleep. However, once # gnuplot exits, but the persistent window sticks around, you can no # longer interactively zoom the plot. So we still sleep - sleep(100000000) unless $options{dump} || $options{exit}; + unless($options{dump} || $options{exit}) + { + print PIPE "pause mouse close\n"; + } } sub pruneOldData From ba0f2eee08eab91a098a9b5d72bdca78c737aa78 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Thu, 29 Mar 2018 13:57:07 -0700 Subject: [PATCH 4/5] completion knows about the fnormal distribution --- completions/zsh/_feedgnuplot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/zsh/_feedgnuplot b/completions/zsh/_feedgnuplot index cfb5a12..3f57213 100644 --- a/completions/zsh/_feedgnuplot +++ b/completions/zsh/_feedgnuplot @@ -48,7 +48,7 @@ _arguments -S '*--style[Additional styles for a curve]:curve id: :style:' \ '(--3d)*--histogram:plot to treat as a histogram:' \ '--binwidth:Histogram bin width:' \ - '--histstyle:Style of histogram:(frequency unique cumulative cnormal)' \ + '--histstyle:Style of histogram:(frequency fnormal unique cumulative cnormal)' \ '--terminal:Terminal options to set with "set terminal":' \ '*--legend[Legend for a curve]:curve id: :legend:' \ '--exit[Exit gnuplot after making the plot]' \ From 350b2db022433a7e1657adec956ddacd41f71f2f Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Fri, 24 Aug 2018 13:11:13 -0700 Subject: [PATCH 5/5] version bump --- Changes | 11 +++++++++++ bin/feedgnuplot | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index cde2892..3ecbf94 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,14 @@ +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 diff --git a/bin/feedgnuplot b/bin/feedgnuplot index 47eaf23..ed6a33b 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -16,7 +16,7 @@ use Pod::Usage; use Time::Piece; # Makefile.PL assumes this is in '' -my $VERSION = '1.49'; +my $VERSION = '1.50'; my %options; interpretCommandline();