You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(2) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(22) |
May
(52) |
Jun
(43) |
Jul
(36) |
Aug
(59) |
Sep
(37) |
Oct
(55) |
Nov
(39) |
Dec
(36) |
| 2005 |
Jan
(64) |
Feb
(40) |
Mar
(62) |
Apr
(58) |
May
(256) |
Jun
(77) |
Jul
(80) |
Aug
(39) |
Sep
(56) |
Oct
(36) |
Nov
(113) |
Dec
(68) |
| 2006 |
Jan
(43) |
Feb
(64) |
Mar
(69) |
Apr
(60) |
May
(71) |
Jun
(53) |
Jul
(63) |
Aug
(63) |
Sep
(76) |
Oct
(85) |
Nov
(82) |
Dec
(73) |
| 2007 |
Jan
(75) |
Feb
(82) |
Mar
(84) |
Apr
(104) |
May
(67) |
Jun
(101) |
Jul
(107) |
Aug
(138) |
Sep
(128) |
Oct
(106) |
Nov
(112) |
Dec
(112) |
| 2008 |
Jan
(94) |
Feb
(87) |
Mar
(146) |
Apr
(169) |
May
(75) |
Jun
(26) |
Jul
(26) |
Aug
(7) |
Sep
(18) |
Oct
(53) |
Nov
(42) |
Dec
(19) |
| 2009 |
Jan
(43) |
Feb
(39) |
Mar
(18) |
Apr
(45) |
May
(66) |
Jun
(87) |
Jul
(56) |
Aug
(41) |
Sep
(56) |
Oct
(139) |
Nov
(98) |
Dec
(88) |
| 2010 |
Jan
(81) |
Feb
(79) |
Mar
(83) |
Apr
(97) |
May
(124) |
Jun
(84) |
Jul
(53) |
Aug
(85) |
Sep
(89) |
Oct
(50) |
Nov
(98) |
Dec
(78) |
| 2011 |
Jan
(97) |
Feb
(74) |
Mar
(68) |
Apr
(54) |
May
(63) |
Jun
(59) |
Jul
(65) |
Aug
(58) |
Sep
(37) |
Oct
(40) |
Nov
(59) |
Dec
(35) |
| 2012 |
Jan
(16) |
Feb
(56) |
Mar
(63) |
Apr
(25) |
May
(48) |
Jun
(58) |
Jul
(20) |
Aug
(13) |
Sep
(43) |
Oct
(35) |
Nov
(20) |
Dec
(17) |
| 2013 |
Jan
(22) |
Feb
(11) |
Mar
(51) |
Apr
(34) |
May
(57) |
Jun
(27) |
Jul
(70) |
Aug
(30) |
Sep
(38) |
Oct
(53) |
Nov
(40) |
Dec
(25) |
| 2014 |
Jan
(26) |
Feb
(35) |
Mar
(60) |
Apr
(12) |
May
(17) |
Jun
(15) |
Jul
(9) |
Aug
(18) |
Sep
(46) |
Oct
(18) |
Nov
(19) |
Dec
(15) |
| 2015 |
Jan
(17) |
Feb
(28) |
Mar
(21) |
Apr
(54) |
May
(36) |
Jun
(8) |
Jul
(30) |
Aug
(13) |
Sep
(3) |
Oct
(28) |
Nov
(3) |
Dec
(3) |
| 2016 |
Jan
(11) |
Feb
(9) |
Mar
(29) |
Apr
(10) |
May
(8) |
Jun
(5) |
Jul
(50) |
Aug
(57) |
Sep
(13) |
Oct
(5) |
Nov
(17) |
Dec
(11) |
| 2017 |
Jan
(3) |
Feb
(23) |
Mar
(16) |
Apr
(7) |
May
(15) |
Jun
(12) |
Jul
(48) |
Aug
(15) |
Sep
(3) |
Oct
(20) |
Nov
(28) |
Dec
(21) |
| 2018 |
Jan
(13) |
Feb
(21) |
Mar
(21) |
Apr
(7) |
May
(3) |
Jun
(7) |
Jul
(27) |
Aug
(38) |
Sep
(4) |
Oct
(30) |
Nov
(22) |
Dec
|
| 2019 |
Jan
(5) |
Feb
(16) |
Mar
(1) |
Apr
(9) |
May
(7) |
Jun
(20) |
Jul
(13) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(2) |
Dec
(4) |
| 2020 |
Jan
(6) |
Feb
(11) |
Mar
(1) |
Apr
(18) |
May
(4) |
Jun
(5) |
Jul
(12) |
Aug
(1) |
Sep
(3) |
Oct
(7) |
Nov
(1) |
Dec
(17) |
| 2021 |
Jan
(1) |
Feb
(11) |
Mar
(16) |
Apr
(6) |
May
(5) |
Jun
(1) |
Jul
(1) |
Aug
(2) |
Sep
(8) |
Oct
(10) |
Nov
(4) |
Dec
(4) |
| 2022 |
Jan
(9) |
Feb
(35) |
Mar
(4) |
Apr
|
May
(3) |
Jun
(49) |
Jul
(11) |
Aug
|
Sep
(5) |
Oct
(2) |
Nov
(16) |
Dec
(13) |
| 2023 |
Jan
|
Feb
(8) |
Mar
(3) |
Apr
|
May
(8) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
| 2024 |
Jan
(6) |
Feb
(9) |
Mar
|
Apr
(26) |
May
(24) |
Jun
|
Jul
(4) |
Aug
(2) |
Sep
(1) |
Oct
(10) |
Nov
(9) |
Dec
|
| 2025 |
Jan
|
Feb
(22) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(4) |
| 2026 |
Jan
|
Feb
(24) |
Mar
(20) |
Apr
(18) |
May
(2) |
Jun
(2) |
Jul
(2) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Thomas S. <t.s...@fz...> - 2009-05-08 14:56:23
|
on a unix system: plot "< paste file1 file2" using ($2-$4) markjoe wrote: > > Hi! > > Is it possible (or is there a trick) to combine two colums from two files > for making one plot. I want to produce a difference plot from two > different output files. So something like: > > plot 'file1' using $2 - 'file2' using $2 > > Perhaps someone has an idea? > > Thanks, Mark > -- View this message in context: http://www.nabble.com/combining-data-from-two-files-in-one-%28single%29-plot--tp23447463p23447657.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: markjoe <na...@ma...> - 2009-05-08 14:47:12
|
Hi! Is it possible (or is there a trick) to combine two colums from two files for making one plot. I want to produce a difference plot from two different output files. So something like: plot 'file1' using $2 - 'file2' using $2 Perhaps someone has an idea? Thanks, Mark -- View this message in context: http://www.nabble.com/combining-data-from-two-files-in-one-%28single%29-plot--tp23447463p23447463.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-05-08 14:46:01
|
maybe the old 'thru' function will work in this case, see http://www.gnuplot.info/docs/node132.html uli80 wrote: > > When looking at the Gnuplot help for 'set datafile missing' I find the > following: > > using 1:2 connects all points regardless there are some missing > using 1:($2) disconnects the data points when there are missing values in > between > > Now the question is: If I need to use the $ to do some calculation with > the data in column 2 but still want all points to be connected, what can I > do? Is it possible? > > Best regards, > Julia > -- View this message in context: http://www.nabble.com/point-connection-with-missing-data-tp23445302p23447444.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-05-08 12:47:38
|
plot 'log' using (timecolumn(1)-87000):2 Augasm wrote: > > I have a similar question. Can we make the same adjustments if we set > xdata time? <BR><BR> > > I have a log of data from an instrument, but the time stamps are off by 1 > day and 10 minutes. I need to correlate the point in the log when things > went async to a real time event within our facility. I've tried > subtracting the time specified in the same format as given in my timefmt > command, i.e.<BR> > set xdata time<BR> > set timefmt "%Y%m%d_%H:%M:%S"<BR> > plot 'log' u ($1-00000001_00:10:00):2<BR> > <BR> > and I've tried subtracting 87000 seconds, i.e.<BR> > plot 'log' u ($1-87000):2<BR><BR> > > The first idea fails altogether, the second idea compiles but doesn't > work out in the plot. Is this time adjustment possible? > <BR><BR> > Cheers,<BR> > john > -- View this message in context: http://www.nabble.com/how-to-shift-the-points-on-x-axis-tp23343419p23445301.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-05-07 11:57:24
|
it's not a simple function, instead the spline is defined by an internal matrix (4 values per x-value) which is used to calculated the polynomial at each sample point. without modifying the source code of gnuplot it's not possible to have access to this matrix. but you can get the approximation curve out as a sequence of x-y-pairs: 'set samples' to a large enough value and 'set table' before plotting. lynx.abraxas wrote: > > Hello! > > > I'm wondering if it is possible to get the function that gnuplot plotted > when > it plots data with acsplines. > I'd like to have that to differentiate it for further plotting/evaluation. > > Many thanks for any hints or help > Lynx > > > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK > i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://www.nabble.com/How-to-get-the-function-from-acspline-fitting--tp23385174p23425252.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Gavin B. <gav...@ya...> - 2009-05-06 11:33:27
|
Sorted... was fairly obvious in the end.
I splotted the difference in concentration and made positive and negative different colours.
Then, when in multiplot, turned of pm3d and set surf.
splot lattice network as a 2D network, with the z value higher than the data.
Output isn't bad....
|
|
From: Thomas S. <t.s...@fz...> - 2009-05-06 07:30:59
|
dantian wrote: > > Dear gnuplot users, > > I'm plotting a data set of like 20 points but I want to fit the 10 first > points. > Is there a way to do that? > yes, when calling the 'fit' command you may limit the xrange, see http://www.gnuplot.info/docs/node82.html dantian wrote: > > Then, I'd prefer to plot error bar only on one point, it it possible to do > that with gnuplot? > yes, make an additional plot for this one point only using the 'every' keyword, see http://www.gnuplot.info/docs/node121.html (e.g. plot fitted_function(x), "datafile" using 1:2, "" using 1:2:3 every ::3:0:3:0 with errorbars) -- View this message in context: http://www.nabble.com/fit-n-first-data-only---errors-bars-questions-tp23394885p23401454.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-05-05 18:20:53
|
you may check for the right x-value (here '3') using the ternary operator: plot 'datafile' using 1:($1==3?a=$2:0 , 0/0) notitle, '' using 1:($2/a) with linespoints the '0' as the 2nd alternative of the ternary operation is only there to make the ternary expression complete, it has no deeper meaning. uli80 wrote: > > Thanks for the quick and helpful answer! > > Just one more thing: If I need the y value to a certain x value, do I have > to check the data file and count the number of lines? > > -- View this message in context: http://www.nabble.com/Access-data-value-in-file-tp23387215p23393177.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-05-05 18:09:03
|
as i wrote in my 1st email, you need gnuplot version 4.3 uli80 wrote: > > When trying your suggestion > > Thomas Sefzick wrote: >> >> plot 'datafile' using 1:(a=$2,0/0) every 1:1:3:0:3:0 notitle, '' using >> 1:($2/a) with linespoints >> > I get the error > ')' expected > > WHY?? > > This is independent of the every keyword, but has something to do with the > 'using 1:(a=$2,0/0)' > -- View this message in context: http://www.nabble.com/Access-data-value-in-file-tp23387215p23392930.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-05-05 14:33:24
|
with gnuplot 4.3 it's possible:
normalize to the maximum y-value:
max(a,b)=a>b?a:b
a=-99999999.
plot 'datafile' using 1:(a=max(a,$2),0/0) notitle, '' using 1:($2/a) with
linespoints
explanation:
1st you plot nothing ('0/0') but you determine the maximum value in
column '2', in the 2nd plot you use this maximum value.
instead of determining the maximum y-value you could also choose any
y-value (e.g. the one in line '4' of your datafile):
plot 'datafile' using 1:(a=$2,0/0) every 1:1:3:0:3:0 notitle, '' using
1:($2/a) with linespoints
uli80 wrote:
>
> Dear all,
>
> I've been using Gnuplot since years as my standard plotting tool. But
> there is one thing, that I still could not find out. Maybe there is anyone
> in this forum who can answer the following question:
>
> I have a data file containing two columns: x and y values.
> How can I get access to one value a = y(x)?
>
> This value I need e.g. to normalize all values in a plot:
>
> plot 'data.txt' using 1:($2/a)
>
>
> Thank you very much for any idea!!
>
--
View this message in context: http://www.nabble.com/Access-data-value-in-file-tp23387215p23388437.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: <lyn...@fr...> - 2009-05-05 10:54:04
|
Hello! I'm wondering if it is possible to get the function that gnuplot plotted when it plots data with acsplines. I'd like to have that to differentiate it for further plotting/evaluation. Many thanks for any hints or help Lynx |
|
From: Gavin B. <gav...@ya...> - 2009-05-04 13:19:51
|
Hi,
I have data which consists of two concentrations, and a network of connected points, which I'm trying to visualize. My first solution might be to generate tables from the contour plots of the two concentrations, and then plot them using plot (one red, say, and the other blue). I could then plot the network as black lines. I'm thinking this might look a bit of a mess though.
Ideal solution might be a pm3d splot with color going from white (no concentration) to either red (one concentration value) or blue (the second concentration value), with 50/50 concentrations being purple.
Firstly, I have no idea how to generate this pm3d plot!
Secondly, can I plot lines on top of the pm3d plot?
Thanks!
|
|
From: Thomas S. <t.s...@fz...> - 2009-05-04 07:21:47
|
you may shift the data/functions you are plotting by 0.3458: plot "datafile' using ($1+0.3458):2 plot sin(x-0.3458) hanamilani wrote: > > Hi, > > My question is how to shift the numbers while plotting with GNUPLOT. > > For example: we have numbers on the x-axis and we want to set some number > like -0.3458 to zero and shift all the other numbers accordingly. > > It means that we shift all the numbers we have for 0.3458. I would be > grateful if you kindly let me know how I can do that. > > Regards, > Hana > -- View this message in context: http://www.nabble.com/how-to-shift-the-points-on-x-axis-tp23343419p23364178.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-04-29 07:30:51
|
the ytics offset is not the problem, but the automatic calculation of
the left margin. adjust this margin by hand and specify an offset
for the ylabel to get it into the plot. add to the commands in your
first email:
set lmargin 10
set ylabel offset 31,0,0
Christian Schroeder wrote:
>
> Thanks for your previous reply.
>
>>> How do I fix this?
>
>> See "help xtics" about the "offset" option, I think.
>
> This helps in that it moves the "ytics" labels that I wish into a spot
> next to the the ylabel. Unfortunately, the graph remains squashed onto the
> right side of the page! Please see the attached file, which was made using
> the following ytics line:
>
> set ytics offset -30 ('$0$' 0, '$\frac{\mathcal{S}_0T_{2}^\ast}{2}$' 0.5,
> '$\mathcal{S}_0T_{2}^\ast$' 1)
>
> Any thoughts? Thanks again!
>
> Cheers,
>
> Christian http://www.nabble.com/file/p23289038/absorption_plot.pdf
> absorption_plot.pdf
>
--
View this message in context: http://www.nabble.com/Plot-size-and-spacing-problem-tp23275857p23292059.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Christian S. <cbk...@ya...> - 2009-04-29 01:24:57
|
Thanks for your previous reply.
>> How do I fix this?
> See "help xtics" about the "offset" option, I think.
This helps in that it moves the "ytics" labels that I wish into a spot next
to the the ylabel. Unfortunately, the graph remains squashed onto the right
side of the page! Please see the attached file, which was made using the
following ytics line:
set ytics offset -30 ('$0$' 0, '$\frac{\mathcal{S}_0T_{2}^\ast}{2}$' 0.5,
'$\mathcal{S}_0T_{2}^\ast$' 1)
Any thoughts? Thanks again!
Cheers,
Christian http://www.nabble.com/file/p23289038/absorption_plot.pdf
absorption_plot.pdf
--
View this message in context: http://www.nabble.com/Plot-size-and-spacing-problem-tp23275857p23289038.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2009-04-28 19:25:08
|
Christian Schroeder wrote: > I'm having a problem with fonts (I think) and sizing related to latex > terminals. Not really. What you're having a problem with is that it's quite impossible for gnuplot to guess what LaTeX will make of a label text. It has no way to position the graph box snugly because it lacks the information for that. > It seems as if gnuplot is assuming that in the ytics labels all of > the characters in all of the latex escape codes are represented in > the final plot, That's exactly what happens, yes. > which, of course, when the latex document is compiled, they are not. There's no way gnuplot could know that, short of re-implementing all of LaTeX. > How do I fix this? See "help xtics" about the "offset" option, I think. |
|
From: Christian S. <cbk...@ya...> - 2009-04-28 12:16:38
|
Hi,
Thanks for taking the time to read my question. I posted it yesterday but
I *think* it "disappeared." If it now comes through twice, my sincerest
apologies.
I'm having a problem with fonts (I think) and sizing related to latex
terminals. The plot which I am producing is the following:
*********
set terminal epslatex size 6in,3.5in
set output 'test.tex'
set samples 10000
set xlabel '$\omega$, rad/s' 0,-1
set ylabel 'Signal, $\mathcal{S}(\omega)$'
set ytics ('$0$' 0, '$\frac{\mathcal{S}_0T_{2}^\ast}{2}$' 0.5,
'$\mathcal{S}_0T_{2}^\ast$' 1)
set xtics ('$0$' 0, '$\frac{1}{T_{2}^\ast}$' 1.0,
'$-\frac{1}{T_{2}^\ast}$' -1.0, '$\frac{3}{T_{2}^\ast}$' 3.0,
'$-\frac{3}{T_{2}^\ast}$' -3.0, '$\frac{5}{T_{2}^\ast}$' 5.0,
'$-\frac{5}{T_{2}^\ast}$' -5.0)
set xrange [-6:6]
set yrange [0:1.1]
unset key
unset xzeroaxis
unset yzeroaxis
set arrow from -1,0 to -1,0.5 linestyle 2 nohead
set arrow from 1,0 to 1,0.5 linestyle 2 nohead
set arrow from -1,0.5 to 1,0.5 linestyle 2 nohead
set arrow from 2,0.6 to 1.1,0.51
set label 'FWHM' at 2.2,0.62 left
plot 1./(1.+x**2) with lines 1
************
The problem is that, so long as the "set ytics" line remains, a plot is
produced which is squeezed onto the right side of the page, yet the ylabel
remains way over on the left. There is thus a *huge* space between the
word "Signal" and the (rather crushed) plot. Interestingly, this happens
regardless of whether I use "input" or "standalone" as arguments to
epslatex. Furthermore, it happens even if I change terminal to latex.
Clearly it's a peculiarity with latex-interfacing terminals. If I comment
out the "set ytics" command, numbers replace my labels in the vertical
axis and all becomes well - the correct size plot is produced. It seems as
if gnuplot is assuming that in the ytics labels all of the characters in
all of the latex escape codes are represented in the final plot, which, of
course, when the latex document is compiled, they are not.
How do I fix this? epslatex is really a great terminal and I really wish
to continue using it. Any pointers you could provide me would be much
appreciated. It seems that this problem must appear for anyone who tries
to use latex-interfacing terminals; that I have not yet - despite my best
efforts - found a solution on my own forces me to feel as though I am
missing something obvious. If that's the case, and I'm wasting your time,
I apologize.
Thank you again.
Cheers,
Christian
--
View this message in context: http://www.nabble.com/Plot-size-and-spacing-problem-tp23275857p23275857.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2009-04-27 21:46:57
|
Tony7682 wrote: > The above seems to be working ok except for one thing: Each call to the cat > | trpr | gnuplot line (bolded above) causes a new, separate gnuplot window > to open. What I would like is for each successive call to that line to > direct its output to the same gnuplot. Then you need to entirely re-do the way your script runs gnuplot. You need a single instance of gnuplot running as a background process, with its input redirected from a stream controlled by the shell. A named pipe should work. |
|
From: Thomas S. <t.s...@fz...> - 2009-04-27 15:01:15
|
let gnuplot do the loop: http://www.gnuplot.info/docs/node151.html inside the loop, load the plot script: http://www.gnuplot.info/docs/node97.html e.g. load "< cat \$MGLOGFILE | trpr drec real auto X" Tony7682 wrote: > > Hi, > > I am a new here. Please be gentle :) > > What I am doing is the following: cat'ing out the contents of an mgen log > file, piping that to trpr (which processes the mgen results into > gnuplot-readable format), and then piping that output to gnuplot. > > mgen info: http://pf.itd.nrl.navy.mil/mgen/mgen.html > trpr info: http://pf.itd.nrl.navy.mil/protools/trpr.html > > The environment I am working in is the following: > Windows XP SP2 > Cygwin Bash and xterm > Cygwin Gnuplot > mgen and trpr compiled for Windows > > Here is the bash script I am running: > > for i in $(seq 1 180) > do > sleep 10 > if [ `expr $i % 6` -ne 0 ]; then > # show snapshot > cat $MGLOGFILE | trpr drec real auto X | gnuplot -noraise -persist > if [ -f $PLOTFILE ]; then > rm -vf $PLOTFILE > fi > else > # show cumulative results > cat $MGLOGFILE | trpr drec auto X output $PLOTFILE && gnuplot > -noraise -persist $PLOTFILE > fi > done > > (I've tried piping tail -f output instead of cat output to trpr, but that > would not work for some reason.) > > The above seems to be working ok except for one thing: Each call to the > cat | trpr | gnuplot line (bolded above) causes a new, separate gnuplot > window to open. What I would like is for each successive call to that line > to direct its output to the same gnuplot. That way, I don't have a new > gnuplot window popping up every 10 seconds. > > My workaround right now is to have a wrapper script that periodically > closes any gnuplot windows. I'd rather avoid having to do that, though. > > Anyone know how to keep continually writing (and rewriting) to one gnuplot > window? > -- View this message in context: http://www.nabble.com/Help-with-continually-piping-to-gnuplot-tp23249716p23258264.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2009-04-27 14:46:31
|
spikecontrol wrote: > > Hey All > New to gnuplot!! > I want to use gnuplot to print data from a serial commport in realtime. > What i have done so far is got a terminal program that can > log to a file while at the same time gnuplot is reading from the file. > What i would like though is not have to send the xAxis values each time > from the > commport to the file. My question is, is it possible to get gnuplot to > take a colum > of data from a file plot these values on the yaxis, for example colum1 > row1 is sample 1, > therefore x should automtically be 1 and the value for y is the data. This > is something > like Excel when you grab a colum of data, it automatically creates an > xaxis? > plot 'datafile' using 1 see: http://www.gnuplot.info/docs/node133.html spikecontrol wrote: > > Also when i run the script to do this, i sort of loose control of gnuplot, > it keeps > redrawing the graph even if i have stopped writing to the file from the > commport and > i can't pause it or stop it. Is it possible to get gnuplot to stop once it > has reached the end of the file? > do you reread the file every time the plot is updated? if yes, the only way to stop gnuplot from reading it is to delete or rename the file. -- View this message in context: http://www.nabble.com/Auto-increment-x-axis-tp23234526p23257914.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Tony7682 <ton...@ya...> - 2009-04-27 05:20:53
|
Hi, I am a new here. Please be gentle :) What I am doing is the following: cat'ing out the contents of an mgen log file, piping that to trpr (which processes the mgen results into gnuplot-readable format), and then piping that output to gnuplot. mgen info: http://pf.itd.nrl.navy.mil/mgen/mgen.html trpr info: http://pf.itd.nrl.navy.mil/protools/trpr.html The environment I am working in is the following: Windows XP SP2 Cygwin Bash and xterm Cygwin Gnuplot mgen and trpr compiled for Windows Here is the bash script I am running: for i in $(seq 1 180) do sleep 10 if [ `expr $i % 6` -ne 0 ]; then # show snapshot cat $MGLOGFILE | trpr drec real auto X | gnuplot -noraise -persist if [ -f $PLOTFILE ]; then rm -vf $PLOTFILE fi else # show cumulative results cat $MGLOGFILE | trpr drec auto X output $PLOTFILE && gnuplot -noraise -persist $PLOTFILE fi done (I've tried piping tail -f output instead of cat output to trpr, but that would not work for some reason.) The above seems to be working ok except for one thing: Each call to the cat | trpr | gnuplot line (bolded above) causes a new, separate gnuplot window to open. What I would like is for each successive call to that line to direct its output to the same gnuplot. That way, I don't have a new gnuplot window popping up every 10 seconds. My workaround right now is to have a wrapper script that periodically closes any gnuplot windows. I'd rather avoid having to do that, though. Anyone know how to keep continually writing (and rewriting) to one gnuplot window? -- View this message in context: http://www.nabble.com/Help-with-continually-piping-to-gnuplot-tp23249716p23249716.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Alice5785 <Al...@st...> - 2009-04-26 17:13:12
|
oh very nice, thanks again :) those things I write into a tex-file, so that I
don't have to search every time I need it :)
Thomas Sefzick wrote:
>
> you may save some time (used for positioning the contents of one
> line) by writing the surrounding text into the sprintf command:
>
> set label 1 sprintf("F = [ %.2f +/- %.2f (%.2f%%) ]
> C/mol",a,a_err,a_err/a*100) at graph 0.38,0.35
>
> set label 6 sprintf("N_A = %.5e particles/mol",a/1.602176487e-19) at graph
> 0.38,0.22
>
> this has the advantage of being font size independant.
>
>
> Alice5785 wrote:
>>
>> Thank you very much!
>> I have now what I wanted, looks a little difficult but it wirks :-)
>>
>> for those who want to know how (but you will need a file.dat file with
>> the columns "volumina in ml", "time in sec", "meausred height in cm"):
>>
>> f(x)=a*x+b
>> set fit errorvariables
>> fit f(x) "file.dat" using
>> ($1*(0.99458e5+1.08e3*9.81*$3*1e-2-0.94*3.08e3)*273.15/(1.01325e5*297.66)):(4.4828e3*$2)
>> via a,b
>>
>> set label 1 "Faraday-constant from slope of the fit" at graph 0.38,0.4
>> set label 2 "F = [ " at graph 0.38,0.35
>> set label 3 sprintf("%.2f +/- %.2f (%.2f%%)",a,a_err,a_err/a*100) at
>> graph 0.44,0.35
>> set label 4 "] C/mol" at graph 0.84,0.35
>> set label 5 "from that: Avogadro-constant:" at graph 0.38,0.28
>> set label 6 "N_A = " at graph 0.38,0.22
>> set label 7 sprintf("%.5e",a/1.602176487e-19) at graph 0.47,0.22
>> set label 8 "particles/mol" at graph 0.65,0.22
>>
>>
>> important: without the "set fit errorvariables" you won't have the
>> "_err"-Variables!
>>
>
>
--
View this message in context: http://www.nabble.com/Label-value-from-file-and-caption-under-the-graph-tp5680184p23244262.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Thomas S. <t.s...@fz...> - 2009-04-26 16:23:37
|
you may save some time (used for positioning the contents of one
line) by writing the surrounding text into the sprintf command:
set label 1 sprintf("F = [ %.2f +/- %.2f (%.2f%%) ]
C/mol",a,a_err,a_err/a*100) at graph 0.38,0.35
set label 6 sprintf("N_A = %.5e particles/mol",a/1.602176487e-19) at graph
0.38,0.22
this has the advantage of being font size independant.
Alice5785 wrote:
>
> Thank you very much!
> I have now what I wanted, looks a little difficult but it wirks :-)
>
> for those who want to know how (but you will need a file.dat file with the
> columns "volumina in ml", "time in sec", "meausred height in cm"):
>
> f(x)=a*x+b
> set fit errorvariables
> fit f(x) "file.dat" using
> ($1*(0.99458e5+1.08e3*9.81*$3*1e-2-0.94*3.08e3)*273.15/(1.01325e5*297.66)):(4.4828e3*$2)
> via a,b
>
> set label 1 "Faraday-constant from slope of the fit" at graph 0.38,0.4
> set label 2 "F = [ " at graph 0.38,0.35
> set label 3 sprintf("%.2f +/- %.2f (%.2f%%)",a,a_err,a_err/a*100) at graph
> 0.44,0.35
> set label 4 "] C/mol" at graph 0.84,0.35
> set label 5 "from that: Avogadro-constant:" at graph 0.38,0.28
> set label 6 "N_A = " at graph 0.38,0.22
> set label 7 sprintf("%.5e",a/1.602176487e-19) at graph 0.47,0.22
> set label 8 "particles/mol" at graph 0.65,0.22
>
>
> important: without the "set fit errorvariables" you won't have the
> "_err"-Variables!
>
--
View this message in context: http://www.nabble.com/Label-value-from-file-and-caption-under-the-graph-tp5680184p23243755.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Alice5785 <Al...@st...> - 2009-04-26 11:34:57
|
Thank you very much!
I have now what I wanted, looks a little difficult but it wirks :-)
for those who want to know how (but you will need a file.dat file with the
columns "volumina in ml", "time in sec", "meausred height in cm"):
f(x)=a*x+b
set fit errorvariables
fit f(x) "file.dat" using
($1*(0.99458e5+1.08e3*9.81*$3*1e-2-0.94*3.08e3)*273.15/(1.01325e5*297.66)):(4.4828e3*$2)
via a,b
set label 1 "Faraday-constant from slope of the fit" at graph 0.38,0.4
set label 2 "F = [ " at graph 0.38,0.35
set label 3 sprintf("%.2f +/- %.2f (%.2f%%)",a,a_err,a_err/a*100) at graph
0.44,0.35
set label 4 "] C/mol" at graph 0.84,0.35
set label 5 "from that: Avogadro-constant:" at graph 0.38,0.28
set label 6 "N_A = " at graph 0.38,0.22
set label 7 sprintf("%.5e",a/1.602176487e-19) at graph 0.47,0.22
set label 8 "particles/mol" at graph 0.65,0.22
important: without the "set fit errorvariables" you won't have the
"_err"-Variables!
--
View this message in context: http://www.nabble.com/Label-value-from-file-and-caption-under-the-graph-tp5680184p23241376.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Dr. I. D. J. <die...@t-...> - 2009-04-26 09:23:24
|
Hi Alice,
two hints for you:
1.) do not place the labels with
set label 1 "Faradaykonstante aus Steigung der Geraden" at 9.5,7.0
I would recommed you to do it like
set label 1 "Faradaykonstante aus Steigung der Geraden" at graph 0.7,0.4
where "0.7" is equal to 9.5/xrange (your current x-axes value for the label).
The value "0.7" is therefors surely wrong as I do not know your current xrange
setting. The same needs to be done for the yrange, i.e. "0.4" in my example
should be calculated as "7.0/yrange".
The reason for this is simple: given you have to modify the xrange, yrange
settings, the placement of your labels in the graph will remain constant. You
do not have to modify those settings every other time you change ranges.
2.) for the digits behind the comma you need to use the sprintf syntax:
set label 3 sprintf("%4.1",a) at graph 0.8,0.6
will give you 4 digits in total and one behind the comma - adapt this to what
you actually need.
Hope this helps,
take care
Dieter Jurzitza
Am Sonntag 26 April 2009 10:30:03 schrieb Alice5785:
> Thanks a lot! I think I finally got it :)
>
> That was my label first:
******
--
-----------------------------------------------------------
|
\
/\_/\ |
| ~x~ |/-----\ /
\ /- \_/
^^__ _ / _ ____ /
<°°__ \- \_/ | |/ | |
|| || _| _| _| _|
if you really want to see the pictures above - use some font
with constant spacing like courier! :-)
-----------------------------------------------------------
|