mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-09-21 13:18:08 +08:00
Compare commits
9 Commits
debian/1.3
...
v1.38
Author | SHA1 | Date | |
---|---|---|---|
![]() |
18994e68e1 | ||
![]() |
f8ed461571 | ||
![]() |
f01431dd1e | ||
![]() |
80b6030996 | ||
![]() |
232b68b819 | ||
![]() |
12eb829f16 | ||
![]() |
80b5d0ab61 | ||
![]() |
960c43e758 | ||
![]() |
2ecdfb9aef |
15
Changes
15
Changes
@@ -1,3 +1,18 @@
|
|||||||
|
feedgnuplot (1.38)
|
||||||
|
|
||||||
|
* hardcopy defaults:
|
||||||
|
- no enhanced text mode
|
||||||
|
- larger font size
|
||||||
|
|
||||||
|
-- Dima Kogan <dima@secretsauce.net> 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 <dima@secretsauce.net> Fri, 01 Jan 2016 08:09:43 -0800
|
||||||
|
|
||||||
feedgnuplot (1.36)
|
feedgnuplot (1.36)
|
||||||
|
|
||||||
* Added --equation to plot symbolic equations
|
* Added --equation to plot symbolic equations
|
||||||
|
@@ -14,7 +14,7 @@ use Text::ParseWords; # for shellwords
|
|||||||
use Pod::Usage;
|
use Pod::Usage;
|
||||||
use Time::Piece;
|
use Time::Piece;
|
||||||
|
|
||||||
my $VERSION = 1.36;
|
my $VERSION = 1.38;
|
||||||
|
|
||||||
my %options;
|
my %options;
|
||||||
interpretCommandline();
|
interpretCommandline();
|
||||||
@@ -497,11 +497,11 @@ sub mainThread
|
|||||||
}
|
}
|
||||||
|
|
||||||
my %terminalOpts =
|
my %terminalOpts =
|
||||||
( eps => 'postscript solid color enhanced eps',
|
( eps => 'postscript noenhanced solid color enhanced eps',
|
||||||
ps => 'postscript solid color landscape 10',
|
ps => 'postscript noenhanced solid color landscape 12',
|
||||||
pdf => 'pdfcairo solid color font ",10" size 11in,8.5in',
|
pdf => 'pdfcairo noenhanced solid color font ",12" size 11in,8.5in',
|
||||||
png => 'png size 1280,1024',
|
png => 'png noenhanced size 1280,1024',
|
||||||
svg => 'svg');
|
svg => 'svg noenhanced');
|
||||||
|
|
||||||
if( !defined $options{terminal} &&
|
if( !defined $options{terminal} &&
|
||||||
defined $outputfileType &&
|
defined $outputfileType &&
|
||||||
@@ -605,11 +605,6 @@ sub mainThread
|
|||||||
|
|
||||||
setCurveAsHistogram( $_ ) foreach (@{$options{histogram}});
|
setCurveAsHistogram( $_ ) foreach (@{$options{histogram}});
|
||||||
|
|
||||||
# set all the axis ranges
|
|
||||||
# If a bound isn't given I want to set it to the empty string, so I can communicate it simply to
|
|
||||||
# gnuplot
|
|
||||||
print PIPE "set xtics\n";
|
|
||||||
|
|
||||||
if(@{$options{y2}})
|
if(@{$options{y2}})
|
||||||
{
|
{
|
||||||
print PIPE "set ytics nomirror\n";
|
print PIPE "set ytics nomirror\n";
|
||||||
@@ -749,7 +744,7 @@ sub mainThread
|
|||||||
}
|
}
|
||||||
|
|
||||||
# finished reading in all. Plot what we have
|
# finished reading in all. Plot what we have
|
||||||
plotStoredData() unless $options{stream};
|
plotStoredData() unless $options{stream} && $options{exit};
|
||||||
|
|
||||||
if ( defined $options{hardcopy})
|
if ( defined $options{hardcopy})
|
||||||
{
|
{
|
||||||
@@ -1541,12 +1536,17 @@ in the plot. Defaults to 1.0 if not given.
|
|||||||
|
|
||||||
C<--histstyle style>
|
C<--histstyle style>
|
||||||
|
|
||||||
Normally, histograms are generated with the 'smooth freq' gnuplot style.
|
Normally, histograms are generated with the 'smooth frequency' gnuplot style.
|
||||||
C<--histstyle> can be used to select different 'smooth' settings. Allowed are
|
C<--histstyle> can be used to select different C<smooth> settings (see the
|
||||||
'unique', 'cumulative' and 'cnormal'. 'unique' indicates whether a bin has at
|
gnuplot C<help smooth> page for more info). Allowed values are 'frequency' (the
|
||||||
least one item in it: instead of counting the items, it'll always report 0 or 1.
|
default), 'unique', 'cumulative' and 'cnormal'. 'unique' indicates whether a bin
|
||||||
'cumulative' is the integral of the "normal" histogram. 'cnormal' is like
|
has at least one item in it: instead of counting the items, it'll always report
|
||||||
'cumulative', but rescaled to end up at 1.0.
|
0 or 1. 'cumulative' is the integral of the 'frequency' histogram. 'cnormal' is
|
||||||
|
like 'cumulative', but rescaled to end up at 1.0. Note that there's no
|
||||||
|
normalized 'frequency' option because gnuplot does not provide one.
|
||||||
|
|
||||||
|
|
||||||
|
C<help smooth>
|
||||||
|
|
||||||
=item
|
=item
|
||||||
|
|
||||||
@@ -1617,7 +1617,7 @@ times.
|
|||||||
C<--equation xxx>
|
C<--equation xxx>
|
||||||
|
|
||||||
Gnuplot can plot both data and symbolic equations. C<feedgnuplot> generally
|
Gnuplot can plot both data and symbolic equations. C<feedgnuplot> generally
|
||||||
plots data, but with this option can plot symbolic equations /also/. This is
|
plots data, but with this option can plot symbolic equations I<also>. This is
|
||||||
generally intended to augment data plots, since for equation-only plots you
|
generally intended to augment data plots, since for equation-only plots you
|
||||||
don't need C<feedgnuplot>. C<--equation> can be passed multiple times for
|
don't need C<feedgnuplot>. C<--equation> can be passed multiple times for
|
||||||
multiple equations. The given strings are passed to gnuplot directly without any
|
multiple equations. The given strings are passed to gnuplot directly without any
|
||||||
@@ -1629,7 +1629,7 @@ basic example:
|
|||||||
--equation 'sin(x)/x' --equation 'cos(x)/x with lines lw 4'
|
--equation 'sin(x)/x' --equation 'cos(x)/x with lines lw 4'
|
||||||
|
|
||||||
Here I plot the incoming data (points along a line) with the given style (a line
|
Here I plot the incoming data (points along a line) with the given style (a line
|
||||||
with thickness 3), /and/ I plot two damped sinusoids on the same plot. The
|
with thickness 3), I<and> I plot two damped sinusoids on the same plot. The
|
||||||
sinusoids are not affected by C<feedgnuplot> styling, so their styles are set
|
sinusoids are not affected by C<feedgnuplot> styling, so their styles are set
|
||||||
separately, as in this example. More complicated example:
|
separately, as in this example. More complicated example:
|
||||||
|
|
||||||
@@ -1638,7 +1638,7 @@ separately, as in this example. More complicated example:
|
|||||||
--set parametric --set "trange [0:2*3.14]" --equation "sin(t),cos(t)"
|
--set parametric --set "trange [0:2*3.14]" --equation "sin(t),cos(t)"
|
||||||
|
|
||||||
Here the data I generate is points along the unit circle. I plot these as
|
Here the data I generate is points along the unit circle. I plot these as
|
||||||
points, and I /also/ plot a true circle as a parametric equation.
|
points, and I I<also> plot a true circle as a parametric equation.
|
||||||
|
|
||||||
=item
|
=item
|
||||||
|
|
||||||
|
@@ -20,6 +20,7 @@ complete -W \
|
|||||||
--extracmds \
|
--extracmds \
|
||||||
--set \
|
--set \
|
||||||
--unset \
|
--unset \
|
||||||
|
--equation \
|
||||||
--geometry \
|
--geometry \
|
||||||
--hardcopy \
|
--hardcopy \
|
||||||
--help \
|
--help \
|
||||||
|
@@ -32,6 +32,7 @@ _arguments -S
|
|||||||
'*--extracmds[Additional gnuplot commands]:command' \
|
'*--extracmds[Additional gnuplot commands]:command' \
|
||||||
'*--set[Additional 'set' gnuplot commands]:set-option' \
|
'*--set[Additional 'set' gnuplot commands]:set-option' \
|
||||||
'*--unset[Additional 'unset' gnuplot commands]:unset-option' \
|
'*--unset[Additional 'unset' gnuplot commands]:unset-option' \
|
||||||
|
'*--equation[Raw symbolic equation]:equation' \
|
||||||
'--square[Plot data with square aspect ratio]' \
|
'--square[Plot data with square aspect ratio]' \
|
||||||
'--square_xy[For 3D plots, set square aspect ratio for ONLY the x,y axes]' \
|
'--square_xy[For 3D plots, set square aspect ratio for ONLY the x,y axes]' \
|
||||||
'--hardcopy[Plot to a file]:filename' \
|
'--hardcopy[Plot to a file]:filename' \
|
||||||
|
Reference in New Issue
Block a user