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: pban92 <pb...@ya...> - 2011-02-16 17:09:55
|
@Tait, Thank you for your suggestions! I know what you mean. Now, 1. Here is the output http://old.nabble.com/file/p30936652/transp.jpg transp.jpg I do not get the transparency effect with, set style fill transparent solid 0.50 noborder 2. I liked the cluster histogram but confused about how my data should be arranged as i did not find immigration.dat file to take a look inside it. Many thanks! Tait-2 wrote: > >> I am comparing two histograms (red and green) using gnuplot as in here >> http://old.nabble.com/file/p30933874/gnufence0.jpg gnufence0.jpg but the >> red is partially covered by the green. To avoid this overlapping, a fence >> plot as shown in here http://old.nabble.com/file/p30933874/gnufence.jpg >> gnufence.jpg is a good solution undoubtedly. Question is how do I do >> this >> in gnuplot? Suggestions would be highly appreciated. Thanks! > > First, let me answer your question. You can do fence plots by following > the approach in http://gnuplot.sourceforge.net/demo_4.4/surface1.html > (just below halfway down). > > However, fence plots are, in my opinion, the wrong solution for your > problem. Because of the pseudo-3D perspective, it is almost imposible to > directly compare the histograms in your second graph. Does "SF4 7a" or > "eSF2 7a" have the higher peak, for example? > > Instead, may I suggest you use one of: > - a clustered histogram > second plot, http://gnuplot.sourceforge.net/demo_4.4/histograms.html > - a multiplot > http://t16web.lanl.gov/Kawano/gnuplot/gallery/pressureSlopes.html > - transparency > http://gnuplot.sourceforge.net/demo_4.4/transparent.html > > Any of these would more clearly present the data and comparison you're > apparently trying to make. > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/fence-plotting-in-gnuplot-tp30933874p30936652.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2011-02-16 16:31:39
|
your line is most likely something like f(x)=a*x+b if you want the function to go through 0,0 then 'b' must be zero and 'a' is the only free parameter. b=0 fit f(x) ... via a James00007 wrote: > > Hi, > > I have implemented line fitting in gnuplot but I need the fitted line to > originate at the origin and then fit through the data. > > Has anyone done such a thing. Searched a lot but couldnt find anything on > the Net. > > My data lies in a straight line and that line is more or less pointing to > the origin so should > be a little less problematic...hopefully > > Will appreciate any help! > -- View this message in context: http://old.nabble.com/Line-fitting-through-the-origin-tp30936621p30936649.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Kai R. <ph...@gm...> - 2011-02-16 09:57:16
|
Hello all, I am using a multiplot with different functions in the subplots. Now I am looking for a way to use a single key box that shows all functions in the subplots. Is that possible? thanks in advance, kai |
|
From: Thomas S. <t.s...@fz...> - 2011-02-16 08:26:02
|
integer division... gnuplot> print 1/2 0 gnuplot> print 1./2. 0.5 gnuplot> print 5**(1/2) 1 gnuplot> print 5**(1./2.) 2.23606797749979 'x**0' is always '1' minimalmiser wrote: > > I am having problems with order of evaluation! I am plotting the function: > d(x)=x**(1/2) > It would seem that this should be the square root of x, but instead it > evaluates to 1, for any value of x. > Clearly the parenthesis is not evaluating first, but this does not make > any sense because the docs say they evaluate first! > Does anyone have clarification on this issue? > -- View this message in context: http://old.nabble.com/order-of-evaluation-tp30936586p30936606.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Raphael <ro...@cl...> - 2011-02-16 07:10:50
|
Hi all I have a question regarding to color-map a dataset. Lets say I have 9 datapoints (3x3). If I plot this datafile with pm3d map, than I only get 4 colored boxes (color between the points). Is there a way to get 9 boxes (in such a way that my (x,y)-coordinate is centered in that colored rectangle and not at the edge?). I have my data like this in the file : x1 y1 value x1 y2 value x1 y3 value x2 y1 value : : etc Or do I have to transform my grid my hand? greetings Raphael |
|
From: Jon <dev...@gm...> - 2011-02-16 00:41:42
|
Dear Tait, I guess the script you analyzed is what I wrote, but not by Nunzio Losacco. His code is a bit complex than mine. What I am asking is basically the concept of one pass or two passes possibly used by gnuplot, similar concept relevant to SAS or database languages. Sincerely, Jon On Tue, Feb 15, 2011 at 5:29 PM, Tait <gnu...@t4...> wrote: > > (Sorry this was delayed; I accidentally sent from the wrong address > and it was rejected by the moderator. But having already written it, > it seemed a shame not to send it.) > > > set term dumb > > min=10**10 > > plot 'disy.100' u ($3<min?min=$3:min=min,$1):3 > > > > set term x11 > > plot 'disy.100' u 1:($3/min) > > > > and you easily see the idea I wrote it this way. I think this reflects a > big > > problem for me to understand deeply how gnuplot deals with datafile and > how > > it plots, which is obviously different from the standard programming > > languages. Thanks for your in-depth explanation or references, > > > First, are you familiar with C? The syntax is similar, and it is described > in "help ternary". The ternary operator: > (condition) ? true-expr : false-expr > is a single-line if/then/else construct. If condition is true, then > true-expr is evaluated. Otherwise, false-expr is evaluated instead. So > consider: > $3<min ? min=$3 : min=min > If the third column is less than the value of the variable min, then > assign this new value to min. Otherwise do a non-operation (of setting > min equal to itself). > > The "plot... using ($3<min?min=$3:min=min,$1):3" means plot the third > column as the y-coordinate, against the stuff in parenthesis as the > x-coordinate. In recent gnuplot versions, multiple expressions can > be evaluated for each line of the input file, by separating them with > a comma. The stuff in parenthesis finds the minimum value of column 3 > (and saves in it variable min), then evaluates $1, which just means the > value of column 1. > > The first plot is output as text in the console, so you might not have > seen it. It doesn't matter, because it's just a throwaway plot used to > find the minimum value of column 3 anyway. > > The second plot is the one that matters. It plots your data file using > 1:($3/min) which means plot column 3 divided* by min versus column 1. > > Another approach to this problem would be to use an external program/script > to find the minimum value of column three. I often use Perl for these > tasks. Others use sed/awk/shell scripts. We should probably develop some > C programs for contrib to do common tasks like this. For example: > filename="disy.100" > c3min = `min_value_by_col.pl filename 3` > set term X11 > plot filename using 1:(($3+0.0)/c3min) > > > > > * The division here is possibly integer division, depending on the values > from column 3 of 'disy.100'. If you want to assure floating-point results > from the division, you should instead: > plot 'disy.100' using 1:((0.0+$3)/min) > or something similar. Adding 0.0 will force promotion of $3 to a float > type, which will in turn force the division to be a floating-point > operation. > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: Tait <gnu...@t4...> - 2011-02-15 23:48:40
|
> I am comparing two histograms (red and green) using gnuplot as in here > http://old.nabble.com/file/p30933874/gnufence0.jpg gnufence0.jpg but the > red is partially covered by the green. To avoid this overlapping, a fence > plot as shown in here http://old.nabble.com/file/p30933874/gnufence.jpg > gnufence.jpg is a good solution undoubtedly. Question is how do I do this > in gnuplot? Suggestions would be highly appreciated. Thanks! First, let me answer your question. You can do fence plots by following the approach in http://gnuplot.sourceforge.net/demo_4.4/surface1.html (just below halfway down). However, fence plots are, in my opinion, the wrong solution for your problem. Because of the pseudo-3D perspective, it is almost imposible to directly compare the histograms in your second graph. Does "SF4 7a" or "eSF2 7a" have the higher peak, for example? Instead, may I suggest you use one of: - a clustered histogram second plot, http://gnuplot.sourceforge.net/demo_4.4/histograms.html - a multiplot http://t16web.lanl.gov/Kawano/gnuplot/gallery/pressureSlopes.html - transparency http://gnuplot.sourceforge.net/demo_4.4/transparent.html Any of these would more clearly present the data and comparison you're apparently trying to make. |
|
From: Tait <gnu...@t4...> - 2011-02-15 23:29:38
|
(Sorry this was delayed; I accidentally sent from the wrong address and it was rejected by the moderator. But having already written it, it seemed a shame not to send it.) > set term dumb > min=10**10 > plot 'disy.100' u ($3<min?min=$3:min=min,$1):3 > > set term x11 > plot 'disy.100' u 1:($3/min) > > and you easily see the idea I wrote it this way. I think this reflects a big > problem for me to understand deeply how gnuplot deals with datafile and how > it plots, which is obviously different from the standard programming > languages. Thanks for your in-depth explanation or references, First, are you familiar with C? The syntax is similar, and it is described in "help ternary". The ternary operator: (condition) ? true-expr : false-expr is a single-line if/then/else construct. If condition is true, then true-expr is evaluated. Otherwise, false-expr is evaluated instead. So consider: $3<min ? min=$3 : min=min If the third column is less than the value of the variable min, then assign this new value to min. Otherwise do a non-operation (of setting min equal to itself). The "plot... using ($3<min?min=$3:min=min,$1):3" means plot the third column as the y-coordinate, against the stuff in parenthesis as the x-coordinate. In recent gnuplot versions, multiple expressions can be evaluated for each line of the input file, by separating them with a comma. The stuff in parenthesis finds the minimum value of column 3 (and saves in it variable min), then evaluates $1, which just means the value of column 1. The first plot is output as text in the console, so you might not have seen it. It doesn't matter, because it's just a throwaway plot used to find the minimum value of column 3 anyway. The second plot is the one that matters. It plots your data file using 1:($3/min) which means plot column 3 divided* by min versus column 1. Another approach to this problem would be to use an external program/script to find the minimum value of column three. I often use Perl for these tasks. Others use sed/awk/shell scripts. We should probably develop some C programs for contrib to do common tasks like this. For example: filename="disy.100" c3min = `min_value_by_col.pl filename 3` set term X11 plot filename using 1:(($3+0.0)/c3min) * The division here is possibly integer division, depending on the values from column 3 of 'disy.100'. If you want to assure floating-point results from the division, you should instead: plot 'disy.100' using 1:((0.0+$3)/min) or something similar. Adding 0.0 will force promotion of $3 to a float type, which will in turn force the division to be a floating-point operation. |
|
From: Jon <dev...@gm...> - 2011-02-15 22:08:27
|
Dear Thomas, I attach the plot here for both cases using the dataset I listed in the previous email. You can see that the rescaled data really uses 0.1 as the minimum. By the way, I cannot understand what you mean by saying "but should be '0.09', '0.045', and '1'"? Shouldn't the first three be "9,4.5,1", as correctly shown in the plot I attach in this email? Thanks, Sincerely, Jon On Tue, Feb 15, 2011 at 1:06 PM, Thomas Sefzick <t.s...@fz...>wrote: > > the script correctly identifies 0.1 as the minimum, yes, > but not for all data points. > you may have noticed that the 1st three y-values in the plot are '1', > but should be '0.09', '0.045', and '1'. > > the script searches for the minimum by storing the actual y-value if > it's smaller than a previous one. as long as the absolute minimum > isn't found, i.e. the data line with the minumum y-value hasn't been > yet read, y-values are divided by the intermediate minimum. > that's the reason why the y-values are always '1' when reading > my data set. > > > bsmile wrote: > > > > Dear Thomas, > > > > I actually specifically checked whether the first script could capture a > > minimum hidden in the data except for the first line. The sample data I > > used > > is > > > > 1 0.9 > > 2 0.45 > > 3 0.1 > > 4 0.94 > > 5 0.44 > > 6 0.12 > > 7 0.36 > > > > and it seems a single pass corrected identified 0.1 as the minimum. As to > > your sample data, the missing of y range is a 2nd mysterious to me as if > I > > change the data to float, it works fine, and even if I interpret the data > > to > > be integer, it should still give the right answer instead of giving > > constant > > 1 for each dataline. > > > > Sincerely, > > Jon > > > > > > On Tue, Feb 15, 2011 at 2:31 AM, Thomas Sefzick > > <t.s...@fz...>wrote: > > > >> > >> strictly speaking, nunzio's script only works if the smallest number is > >> in > >> the > >> 1st data line. > >> > >> an example: > >> > >> #ts.dat: > >> 1 10 > >> 2 9 > >> 3 8 > >> 4 7 > >> 5 6 > >> 6 5 > >> 7 4 > >> 8 3 > >> 9 2 > >> 10 1 > >> > >> #script: > >> min=10**10 > >> grab(x)=x<min?min=x:min=min > >> plot 'ts.dat' using 1:($2/grab($2)) > >> > >> gives a horizontal line and a warning about the empty y-range. > >> this means that gnuplot behaves like other programming languages > >> and there is no magic behind it. > >> > >> a 2nd plot gives the correct result, as you have pointed out, > >> because then 'min' already contains the smallest value. > >> > >> #script: > >> min=10**10 > >> grab(x)=x<min?min=x:min=min > >> plot "ts.dat" using 1:($2/grab($2)), "" using 1:($2/grab($2)) > >> > >> ... , "" using 1:($2/grab($2)) > >> is equivalent to > >> ... , "" using 1:($2/min) > >> > >> > >> bsmile wrote: > >> > > >> > Dear Thomas, > >> > > >> > Nunzio Losacco wrote a short script to get each number divided by the > >> > smallest number in a specific column, as > >> > min=10**10 > >> > grab(x)=x<min?min=x:min=min > >> > plot 'disy.100' u 1:($3/grab($3)) > >> > > >> > I don't quite understand the logic behind although I checked that it > >> works > >> > fine. If I were to do this, I would write something like > >> > > >> > set term dumb > >> > min=10**10 > >> > plot 'disy.100' u ($3<min?min=$3:min=min,$1):3 > >> > > >> > set term x11 > >> > plot 'disy.100' u 1:($3/min) > >> > > >> > and you easily see the idea I wrote it this way. I think this reflects > >> a > >> > big > >> > problem for me to understand deeply how gnuplot deals with datafile > and > >> > how > >> > it plots, which is obviously different from the standard programming > >> > languages. Thanks for your in-depth explanation or references, > >> > > >> > Sincerely, > >> > Jon > >> > > >> > ------------------------------------------------------------------------------ > >> > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio > >> XE: > >> > Pinpoint memory and threading errors before they happen. > >> > Find and fix more than 250 security defects in the development cycle. > >> > Locate bottlenecks in serial and parallel code that limit performance. > >> > http://p.sf.net/sfu/intel-dev2devfeb > >> > _______________________________________________ > >> > gnuplot-info mailing list > >> > gnu...@li... > >> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/explanation-to-a-short-script-tp30924408p30928896.html > >> Sent from the Gnuplot - User mailing list archive at Nabble.com. > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio > XE: > >> Pinpoint memory and threading errors before they happen. > >> Find and fix more than 250 security defects in the development cycle. > >> Locate bottlenecks in serial and parallel code that limit performance. > >> http://p.sf.net/sfu/intel-dev2devfeb > >> _______________________________________________ > >> gnuplot-info mailing list > >> gnu...@li... > >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info > >> > > > ------------------------------------------------------------------------------ > > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > > Pinpoint memory and threading errors before they happen. > > Find and fix more than 250 security defects in the development cycle. > > Locate bottlenecks in serial and parallel code that limit performance. > > http://p.sf.net/sfu/intel-dev2devfeb > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > > > -- > View this message in context: > http://old.nabble.com/explanation-to-a-short-script-tp30924408p30934168.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: Thomas S. <t.s...@fz...> - 2011-02-15 19:06:15
|
the script correctly identifies 0.1 as the minimum, yes, but not for all data points. you may have noticed that the 1st three y-values in the plot are '1', but should be '0.09', '0.045', and '1'. the script searches for the minimum by storing the actual y-value if it's smaller than a previous one. as long as the absolute minimum isn't found, i.e. the data line with the minumum y-value hasn't been yet read, y-values are divided by the intermediate minimum. that's the reason why the y-values are always '1' when reading my data set. bsmile wrote: > > Dear Thomas, > > I actually specifically checked whether the first script could capture a > minimum hidden in the data except for the first line. The sample data I > used > is > > 1 0.9 > 2 0.45 > 3 0.1 > 4 0.94 > 5 0.44 > 6 0.12 > 7 0.36 > > and it seems a single pass corrected identified 0.1 as the minimum. As to > your sample data, the missing of y range is a 2nd mysterious to me as if I > change the data to float, it works fine, and even if I interpret the data > to > be integer, it should still give the right answer instead of giving > constant > 1 for each dataline. > > Sincerely, > Jon > > > On Tue, Feb 15, 2011 at 2:31 AM, Thomas Sefzick > <t.s...@fz...>wrote: > >> >> strictly speaking, nunzio's script only works if the smallest number is >> in >> the >> 1st data line. >> >> an example: >> >> #ts.dat: >> 1 10 >> 2 9 >> 3 8 >> 4 7 >> 5 6 >> 6 5 >> 7 4 >> 8 3 >> 9 2 >> 10 1 >> >> #script: >> min=10**10 >> grab(x)=x<min?min=x:min=min >> plot 'ts.dat' using 1:($2/grab($2)) >> >> gives a horizontal line and a warning about the empty y-range. >> this means that gnuplot behaves like other programming languages >> and there is no magic behind it. >> >> a 2nd plot gives the correct result, as you have pointed out, >> because then 'min' already contains the smallest value. >> >> #script: >> min=10**10 >> grab(x)=x<min?min=x:min=min >> plot "ts.dat" using 1:($2/grab($2)), "" using 1:($2/grab($2)) >> >> ... , "" using 1:($2/grab($2)) >> is equivalent to >> ... , "" using 1:($2/min) >> >> >> bsmile wrote: >> > >> > Dear Thomas, >> > >> > Nunzio Losacco wrote a short script to get each number divided by the >> > smallest number in a specific column, as >> > min=10**10 >> > grab(x)=x<min?min=x:min=min >> > plot 'disy.100' u 1:($3/grab($3)) >> > >> > I don't quite understand the logic behind although I checked that it >> works >> > fine. If I were to do this, I would write something like >> > >> > set term dumb >> > min=10**10 >> > plot 'disy.100' u ($3<min?min=$3:min=min,$1):3 >> > >> > set term x11 >> > plot 'disy.100' u 1:($3/min) >> > >> > and you easily see the idea I wrote it this way. I think this reflects >> a >> > big >> > problem for me to understand deeply how gnuplot deals with datafile and >> > how >> > it plots, which is obviously different from the standard programming >> > languages. Thanks for your in-depth explanation or references, >> > >> > Sincerely, >> > Jon >> > >> ------------------------------------------------------------------------------ >> > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio >> XE: >> > Pinpoint memory and threading errors before they happen. >> > Find and fix more than 250 security defects in the development cycle. >> > Locate bottlenecks in serial and parallel code that limit performance. >> > http://p.sf.net/sfu/intel-dev2devfeb >> > _______________________________________________ >> > gnuplot-info mailing list >> > gnu...@li... >> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/explanation-to-a-short-script-tp30924408p30928896.html >> Sent from the Gnuplot - User mailing list archive at Nabble.com. >> >> >> >> ------------------------------------------------------------------------------ >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: >> Pinpoint memory and threading errors before they happen. >> Find and fix more than 250 security defects in the development cycle. >> Locate bottlenecks in serial and parallel code that limit performance. >> http://p.sf.net/sfu/intel-dev2devfeb >> _______________________________________________ >> gnuplot-info mailing list >> gnu...@li... >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/explanation-to-a-short-script-tp30924408p30934168.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: pban92 <pb...@ya...> - 2011-02-15 19:06:13
|
here is my code, clear set style fill solid 1.0 border -1 binwidth=0.01 bin(x,width)=width*floor(x/width) + binwidth/2.0 plot 'case001.nvd' using (bin($1,binwidth)):(1.0) smooth freq w boxes,\ 'case097.nvd' using (bin($1,binwidth)):(1.0) smooth freq w boxes -- View this message in context: http://old.nabble.com/fence-plotting-in-gnuplot-tp30933874p30934166.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: pban92 <pb...@ya...> - 2011-02-15 18:34:06
|
I am comparing two histograms (red and green) using gnuplot as in here http://old.nabble.com/file/p30933874/gnufence0.jpg gnufence0.jpg but the red is partially covered by the green. To avoid this overlapping, a fence plot as shown in here http://old.nabble.com/file/p30933874/gnufence.jpg gnufence.jpg is a good solution undoubtedly. Question is how do I do this in gnuplot? Suggestions would be highly appreciated. Thanks! -- View this message in context: http://old.nabble.com/fence-plotting-in-gnuplot-tp30933874p30933874.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: pban92 <pb...@ya...> - 2011-02-15 17:50:27
|
This is my version which I thought looking at the version number 4.5 to be
the latest one.
G N U P L O T
Version 4.5 patchlevel 0
last modified November 2009
System: MS-Windows 32 bit
But here http://www.gnuplot.info/download.html
http://www.gnuplot.info/download.html it says "The release of version 4.4.0
was announced on March 13, 2010".
So which is the latest one?
Many thanks!
--
View this message in context: http://old.nabble.com/Latest-version-of-gnuplot-tp30933405p30933405.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Jon <dev...@gm...> - 2011-02-15 16:51:11
|
Dear Thomas, I actually specifically checked whether the first script could capture a minimum hidden in the data except for the first line. The sample data I used is 1 0.9 2 0.45 3 0.1 4 0.94 5 0.44 6 0.12 7 0.36 and it seems a single pass corrected identified 0.1 as the minimum. As to your sample data, the missing of y range is a 2nd mysterious to me as if I change the data to float, it works fine, and even if I interpret the data to be integer, it should still give the right answer instead of giving constant 1 for each dataline. Sincerely, Jon On Tue, Feb 15, 2011 at 2:31 AM, Thomas Sefzick <t.s...@fz...>wrote: > > strictly speaking, nunzio's script only works if the smallest number is in > the > 1st data line. > > an example: > > #ts.dat: > 1 10 > 2 9 > 3 8 > 4 7 > 5 6 > 6 5 > 7 4 > 8 3 > 9 2 > 10 1 > > #script: > min=10**10 > grab(x)=x<min?min=x:min=min > plot 'ts.dat' using 1:($2/grab($2)) > > gives a horizontal line and a warning about the empty y-range. > this means that gnuplot behaves like other programming languages > and there is no magic behind it. > > a 2nd plot gives the correct result, as you have pointed out, > because then 'min' already contains the smallest value. > > #script: > min=10**10 > grab(x)=x<min?min=x:min=min > plot "ts.dat" using 1:($2/grab($2)), "" using 1:($2/grab($2)) > > ... , "" using 1:($2/grab($2)) > is equivalent to > ... , "" using 1:($2/min) > > > bsmile wrote: > > > > Dear Thomas, > > > > Nunzio Losacco wrote a short script to get each number divided by the > > smallest number in a specific column, as > > min=10**10 > > grab(x)=x<min?min=x:min=min > > plot 'disy.100' u 1:($3/grab($3)) > > > > I don't quite understand the logic behind although I checked that it > works > > fine. If I were to do this, I would write something like > > > > set term dumb > > min=10**10 > > plot 'disy.100' u ($3<min?min=$3:min=min,$1):3 > > > > set term x11 > > plot 'disy.100' u 1:($3/min) > > > > and you easily see the idea I wrote it this way. I think this reflects a > > big > > problem for me to understand deeply how gnuplot deals with datafile and > > how > > it plots, which is obviously different from the standard programming > > languages. Thanks for your in-depth explanation or references, > > > > Sincerely, > > Jon > > > ------------------------------------------------------------------------------ > > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > > Pinpoint memory and threading errors before they happen. > > Find and fix more than 250 security defects in the development cycle. > > Locate bottlenecks in serial and parallel code that limit performance. > > http://p.sf.net/sfu/intel-dev2devfeb > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > > > -- > View this message in context: > http://old.nabble.com/explanation-to-a-short-script-tp30924408p30928896.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: Thomas S. <t.s...@fz...> - 2011-02-15 08:31:34
|
strictly speaking, nunzio's script only works if the smallest number is in the 1st data line. an example: #ts.dat: 1 10 2 9 3 8 4 7 5 6 6 5 7 4 8 3 9 2 10 1 #script: min=10**10 grab(x)=x<min?min=x:min=min plot 'ts.dat' using 1:($2/grab($2)) gives a horizontal line and a warning about the empty y-range. this means that gnuplot behaves like other programming languages and there is no magic behind it. a 2nd plot gives the correct result, as you have pointed out, because then 'min' already contains the smallest value. #script: min=10**10 grab(x)=x<min?min=x:min=min plot "ts.dat" using 1:($2/grab($2)), "" using 1:($2/grab($2)) ... , "" using 1:($2/grab($2)) is equivalent to ... , "" using 1:($2/min) bsmile wrote: > > Dear Thomas, > > Nunzio Losacco wrote a short script to get each number divided by the > smallest number in a specific column, as > min=10**10 > grab(x)=x<min?min=x:min=min > plot 'disy.100' u 1:($3/grab($3)) > > I don't quite understand the logic behind although I checked that it works > fine. If I were to do this, I would write something like > > set term dumb > min=10**10 > plot 'disy.100' u ($3<min?min=$3:min=min,$1):3 > > set term x11 > plot 'disy.100' u 1:($3/min) > > and you easily see the idea I wrote it this way. I think this reflects a > big > problem for me to understand deeply how gnuplot deals with datafile and > how > it plots, which is obviously different from the standard programming > languages. Thanks for your in-depth explanation or references, > > Sincerely, > Jon > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/explanation-to-a-short-script-tp30924408p30928896.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Jon <dev...@gm...> - 2011-02-14 18:22:53
|
Dear Thomas, Nunzio Losacco wrote a short script to get each number divided by the smallest number in a specific column, as min=10**10 grab(x)=x<min?min=x:min=min plot 'disy.100' u 1:($3/grab($3)) I don't quite understand the logic behind although I checked that it works fine. If I were to do this, I would write something like set term dumb min=10**10 plot 'disy.100' u ($3<min?min=$3:min=min,$1):3 set term x11 plot 'disy.100' u 1:($3/min) and you easily see the idea I wrote it this way. I think this reflects a big problem for me to understand deeply how gnuplot deals with datafile and how it plots, which is obviously different from the standard programming languages. Thanks for your in-depth explanation or references, Sincerely, Jon |
|
From: Thomas S. <t.s...@fz...> - 2011-02-14 11:47:16
|
plot ... using (log($3/A0 + 1)):... christoi wrote: > > I am using (two sets of) data to make various plots. In the file > 'extensometer.dat' I have force measurements in column 3 and displacement > measurments in column 2. For the next plot, I want to do > > L0_ext = 80 > A0 = 12.51*2.19 > plot 'extensometer.dat' u log($3/A0 + 1):((1 + $3/A0)*$2/L0_ext) w l title > 'Cauchy stress/logarithmic strain' lw 3 > > I.e. I want to operate on each displacement datapoint with basic algebraic > functions but also the built in function 'log(x)', and then plot the data. > However using the command above, I get an error message pointing to the > log statement saying 'undefined value'. > > Is there any way I can achieve this within gnuplot? > > Thanks in advance! > > -- View this message in context: http://old.nabble.com/Operating-with-gnuplot-fuctions-on-data-from-file-inside-the-%27using%27-command-tp30920585p30920855.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2011-02-13 20:07:40
|
set 'min=10**10' at the beginning of each file:
plot ... using ($0==0?min=10**10:min=min , $1):($3/grab($3))
warpino wrote:
>
> Hi all,
>
> I have some datafiles all named disy.100 in different directories and I
> want
> to plot them all using column 1 vs 3 the latter being divided for the
> minimum value in each datafile.
>
> After googleing a bit, for a single file I managed to do:
>
> min=10**10
> grab(x)=x<min?min=x:min=min
> plot 'disy.100' u 1:($3/grab($3))
>
> and that's fine.
>
> Now I want to do it iteratively starting from the parent directory:
>
> list=system("ls")
> min=10**10
> grab(x)=x<min?min=x:min=min
> plot for[i in list] i.'/disy.100' u 1:($3/grab($3))
>
> but in this case min gets the minimum value of columns 3 of ALL datafiles
> to
> be plotted, while I want it to be the minimum for each dataset.
> Do you have any suggestions for doing that other than processing the files
> through awk first?
>
> Thanks for your help!
>
> w.
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://old.nabble.com/Recognize-end-of-file-in-iterations-tp30915481p30916460.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Nunzio L. <nun...@gm...> - 2011-02-13 17:16:47
|
Hi all,
I have some datafiles all named disy.100 in different directories and I want
to plot them all using column 1 vs 3 the latter being divided for the
minimum value in each datafile.
After googleing a bit, for a single file I managed to do:
min=10**10
grab(x)=x<min?min=x:min=min
plot 'disy.100' u 1:($3/grab($3))
and that's fine.
Now I want to do it iteratively starting from the parent directory:
list=system("ls")
min=10**10
grab(x)=x<min?min=x:min=min
plot for[i in list] i.'/disy.100' u 1:($3/grab($3))
but in this case min gets the minimum value of columns 3 of ALL datafiles to
be plotted, while I want it to be the minimum for each dataset.
Do you have any suggestions for doing that other than processing the files
through awk first?
Thanks for your help!
w.
|
|
From: MortenMacFly <ma...@gm...> - 2011-02-12 13:06:33
|
Dear all, I actually just realised that Gnuplot also has a mailing list. :-) Please allow me a general question: What is the preferred way to inform about bugs? I've posted a bug on the bugtracker (http://sourceforge.net/tracker/?func=detail&atid=102055&aid=3177173&group_id=2055), but see a lot of recent discussion here. Is the bugtracker still appropriate? -- View this message in context: http://old.nabble.com/Crashes-in-Gnuplot-tp30902771p30902771.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2011-02-12 09:52:30
|
sorry, yes, i meant 'stringcolumn(0)'
'stringcolumn(0)' isn't working in gnuplot version 4.4
- here we have to use the sprintf() -,
but in the development version 4.5 it is.
bsmile wrote:
>
> Dear Thomas,
>
> I tested the command you suggested, but gnuplot complains that
> columnstring
> command not found, so I changed to stringcolumn command, but it still
> complains that
>
> "combined_plot_1.gu", line 8: x range is invalid
>
> but if I change all stringcolumn(0) as stringcolumn(1), then at least it
> works. So it seems to me that stringcolumn(0) cannot be corrected
> executed.
> Am I right?
>
> Meanwhile, I think of the following as alternative
>
> p 'aaa.txt' u (cc=sprintf("%i",column(0)), \
> vs=vs.'; v'.cc.'='.stringcolumn(1), \
> ws=ws.'; w'.cc.'='.stringcolumn(2), \
> $1):2 )
>
> but still it is not as elegant as your previous suggestion, so I hope your
> advice could work out.
>
> Sincerely,
> Jon
>
> On Wed, Feb 9, 2011 at 4:38 AM, Thomas Sefzick
> <t.s...@fz...>wrote:
>
>>
>> use 'columnstring(0)'
>> note: numbering of read in data lines starts with 0
>> (have a look at 'pseudocolumns' in the manual)
>>
>>
>> bsmile wrote:
>> >
>> > Thanks, Thomas, very enlightening! Basically you created a string which
>> > contains the characters forming the commands to create all the
>> variables,
>> > then run the string as a macro.
>> >
>> > A bit further question, what if the data file does not have the first
>> > column, say bbb.txt
>> >
>> > 0.56
>> > 0.45
>> > 0.56
>> > 0.65
>> >
>> > and I still want to read these variables into an array
>> >
>> > v1 = 0.56
>> > v2 = 0.45
>> > v3 = 0.56
>> > v4 = 0.65
>> >
>> > if still follow your logic, I don't have a columnstring(?) to give
>> 1,2,3,4
>> > ..., then what should I do?
>> >
>> > Thanks again,
>> >
>> > Sincerely,
>> > Jon
>> >
>> >
>> >
>> > On Mon, Jan 31, 2011 at 3:33 AM, Thomas Sefzick
>> > <t.s...@fz...>wrote:
>> >
>> >>
>> >> try this:
>> >>
>> >> set macro
>> >> set term dumb
>> >> vs=""
>> >> ws=""
>> >> plot 'aaa.txt' using ( \
>> >> vs=vs.'; v'.stringcolumn(1).'='.stringcolumn(1), \
>> >> ws=ws.'; w'.stringcolumn(1).'='.stringcolumn(2), \
>> >> $1):2
>> >> print "vs: |".vs."|"
>> >> print "ws: |".ws."|"
>> >> @vs
>> >> @ws
>> >> show var
>> >>
>> >>
>> >> bsmile wrote:
>> >> >
>> >> > Dear All,
>> >> >
>> >> > I just asked something about mathematical operation, and Thomas gave
>> me
>> >> > very
>> >> > useful hint. So let me ask something more advanced in my point of
>> view.
>> >> Is
>> >> > it possible to define an array in gnuplot, and read each row of a
>> file
>> >> > into
>> >> > the array, for example,
>> >> >
>> >> > 1 0.56
>> >> > 2 0.45
>> >> > 3 0.56
>> >> > 4 0.65
>> >> >
>> >> > ?
>> >> >
>> >> >>From what I know, I would think of the following
>> >> >
>> >> > p 'aaa.txt' u ( 'v'.$1=$1, 'w'.$1=$1 ):2
>> >> >
>> >> > and it seems that
>> >> >
>> >> > v1=1, w1=0.56
>> >> > v2=2, w2=0.45
>> >> > ...
>> >> >
>> >> > But if I run the code, it fails, complaining that ')' expected
>> >> >
>> >> > Any suggestions?
>> >> >
>> >> > Thanks,
>> >> >
>> >> > Sincerely,
>> >> > Jon
>> >> >
>> >>
>> ------------------------------------------------------------------------------
>> >> > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
>> >> > Finally, a world-class log management solution at an even better
>> >> > price-free!
>> >> > Download using promo code Free_Logger_4_Dev2Dev. Offer expires
>> >> > February 28th, so secure your free ArcSight Logger TODAY!
>> >> > http://p.sf.net/sfu/arcsight-sfd2d
>> >> > _______________________________________________
>> >> > gnuplot-info mailing list
>> >> > gnu...@li...
>> >> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://old.nabble.com/read-a-datafile-into-an-array%2C-is-it-possible--tp30804801p30804971.html
>> >> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
>> >> Finally, a world-class log management solution at an even better
>> >> price-free!
>> >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
>> >> February 28th, so secure your free ArcSight Logger TODAY!
>> >> http://p.sf.net/sfu/arcsight-sfd2d
>> >> _______________________________________________
>> >> gnuplot-info mailing list
>> >> gnu...@li...
>> >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>> >>
>> >
>> ------------------------------------------------------------------------------
>> > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio
>> XE:
>> > Pinpoint memory and threading errors before they happen.
>> > Find and fix more than 250 security defects in the development cycle.
>> > Locate bottlenecks in serial and parallel code that limit performance.
>> > http://p.sf.net/sfu/intel-dev2devfeb
>> > _______________________________________________
>> > gnuplot-info mailing list
>> > gnu...@li...
>> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/read-a-datafile-into-an-array%2C-is-it-possible--tp30804801p30881347.html
>> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
>> Pinpoint memory and threading errors before they happen.
>> Find and fix more than 250 security defects in the development cycle.
>> Locate bottlenecks in serial and parallel code that limit performance.
>> http://p.sf.net/sfu/intel-dev2devfeb
>> _______________________________________________
>> gnuplot-info mailing list
>> gnu...@li...
>> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://old.nabble.com/read-a-datafile-into-an-array%2C-is-it-possible--tp30804801p30907931.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Jon <dev...@gm...> - 2011-02-11 21:58:03
|
Dear Thomas,
I tested the command you suggested, but gnuplot complains that columnstring
command not found, so I changed to stringcolumn command, but it still
complains that
"combined_plot_1.gu", line 8: x range is invalid
but if I change all stringcolumn(0) as stringcolumn(1), then at least it
works. So it seems to me that stringcolumn(0) cannot be corrected executed.
Am I right?
Meanwhile, I think of the following as alternative
p 'aaa.txt' u (cc=sprintf("%i",column(0)), \
vs=vs.'; v'.cc.'='.stringcolumn(1), \
ws=ws.'; w'.cc.'='.stringcolumn(2), \
$1):2 )
but still it is not as elegant as your previous suggestion, so I hope your
advice could work out.
Sincerely,
Jon
On Wed, Feb 9, 2011 at 4:38 AM, Thomas Sefzick <t.s...@fz...>wrote:
>
> use 'columnstring(0)'
> note: numbering of read in data lines starts with 0
> (have a look at 'pseudocolumns' in the manual)
>
>
> bsmile wrote:
> >
> > Thanks, Thomas, very enlightening! Basically you created a string which
> > contains the characters forming the commands to create all the variables,
> > then run the string as a macro.
> >
> > A bit further question, what if the data file does not have the first
> > column, say bbb.txt
> >
> > 0.56
> > 0.45
> > 0.56
> > 0.65
> >
> > and I still want to read these variables into an array
> >
> > v1 = 0.56
> > v2 = 0.45
> > v3 = 0.56
> > v4 = 0.65
> >
> > if still follow your logic, I don't have a columnstring(?) to give
> 1,2,3,4
> > ..., then what should I do?
> >
> > Thanks again,
> >
> > Sincerely,
> > Jon
> >
> >
> >
> > On Mon, Jan 31, 2011 at 3:33 AM, Thomas Sefzick
> > <t.s...@fz...>wrote:
> >
> >>
> >> try this:
> >>
> >> set macro
> >> set term dumb
> >> vs=""
> >> ws=""
> >> plot 'aaa.txt' using ( \
> >> vs=vs.'; v'.stringcolumn(1).'='.stringcolumn(1), \
> >> ws=ws.'; w'.stringcolumn(1).'='.stringcolumn(2), \
> >> $1):2
> >> print "vs: |".vs."|"
> >> print "ws: |".ws."|"
> >> @vs
> >> @ws
> >> show var
> >>
> >>
> >> bsmile wrote:
> >> >
> >> > Dear All,
> >> >
> >> > I just asked something about mathematical operation, and Thomas gave
> me
> >> > very
> >> > useful hint. So let me ask something more advanced in my point of
> view.
> >> Is
> >> > it possible to define an array in gnuplot, and read each row of a file
> >> > into
> >> > the array, for example,
> >> >
> >> > 1 0.56
> >> > 2 0.45
> >> > 3 0.56
> >> > 4 0.65
> >> >
> >> > ?
> >> >
> >> >>From what I know, I would think of the following
> >> >
> >> > p 'aaa.txt' u ( 'v'.$1=$1, 'w'.$1=$1 ):2
> >> >
> >> > and it seems that
> >> >
> >> > v1=1, w1=0.56
> >> > v2=2, w2=0.45
> >> > ...
> >> >
> >> > But if I run the code, it fails, complaining that ')' expected
> >> >
> >> > Any suggestions?
> >> >
> >> > Thanks,
> >> >
> >> > Sincerely,
> >> > Jon
> >> >
> >>
> ------------------------------------------------------------------------------
> >> > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> >> > Finally, a world-class log management solution at an even better
> >> > price-free!
> >> > Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> >> > February 28th, so secure your free ArcSight Logger TODAY!
> >> > http://p.sf.net/sfu/arcsight-sfd2d
> >> > _______________________________________________
> >> > gnuplot-info mailing list
> >> > gnu...@li...
> >> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://old.nabble.com/read-a-datafile-into-an-array%2C-is-it-possible--tp30804801p30804971.html
> >> Sent from the Gnuplot - User mailing list archive at Nabble.com.
> >>
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> >> Finally, a world-class log management solution at an even better
> >> price-free!
> >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> >> February 28th, so secure your free ArcSight Logger TODAY!
> >> http://p.sf.net/sfu/arcsight-sfd2d
> >> _______________________________________________
> >> gnuplot-info mailing list
> >> gnu...@li...
> >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >>
> >
> ------------------------------------------------------------------------------
> > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> > Pinpoint memory and threading errors before they happen.
> > Find and fix more than 250 security defects in the development cycle.
> > Locate bottlenecks in serial and parallel code that limit performance.
> > http://p.sf.net/sfu/intel-dev2devfeb
> > _______________________________________________
> > gnuplot-info mailing list
> > gnu...@li...
> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/read-a-datafile-into-an-array%2C-is-it-possible--tp30804801p30881347.html
> Sent from the Gnuplot - User mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|
|
From: Thomas S. <t.s...@fz...> - 2011-02-11 16:15:30
|
plot normal candlesticks and do the clustering by shifting the x-values: datafile.dat: 5 2 1 4 3 5 4 8 6 4 3 6 5 6 5 4 8 6 4 3 6 5 2 1 4 3 7 4 3 6 5 2 1 4 3 5 4 8 6 8 2 1 4 3 5 4 8 6 4 3 6 5 plot commands: set xrange [4:9] set yrange [0:9] set boxwidth 0.1 plot "datafile.dat" using ($1-0.15):2:3:4:5 with candlesticks whiskerbars, \ "" using 1:6:7:8:9:xtic(1) with candlesticks whiskerbars, \ "" using ($1+0.15):10:11:12:13 with candlesticks whiskerbars Simon Fleming wrote: > > hi all, > > Please can you help? > I am trying to form clusters - like this example, > http://www.codealias.info/technotes/gnuplot_cluster_histogram_example > ...but with candlesticks and whiskerbars! > > Is this possible, can anyone help me achieve this result? I am also > defining the set of xtics names corresponding to values in datafiles > > Any help/advice appreciated > all the best > simon > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/candlesticks---whiskerbars-in-clusters-tp30902171p30902708.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Simon F. <S.F...@su...> - 2011-02-11 15:18:45
|
hi all, Please can you help? I am trying to form clusters - like this example, http://www.codealias.info/technotes/gnuplot_cluster_histogram_example ...but with candlesticks and whiskerbars! Is this possible, can anyone help me achieve this result? I am also defining the set of xtics names corresponding to values in datafiles Any help/advice appreciated all the best simon |
|
From: Jon <dev...@gm...> - 2011-02-10 21:50:52
|
The version I used is Version 4.4 patchlevel 2 and I run help plot under entering gnuplot, Still, is it possible to rearrange the help files so that it could be easier for new-comers to locate specific items to help? Thanks, Sincerely, Jon On Thu, Feb 10, 2011 at 3:16 PM, Thomas Sefzick <t.s...@fz...>wrote: > > are you using an older version of gnuplot? > the special filenames '+' and '++' first appeared in 4.4 > > > bsmile wrote: > > > > Very instructive! > > > > I would like to know more about using "+" as special filename, so I run > > help > > plot and then choosing datafile for details, but I can only find > > explanation > > for another special filename "-" but not "+", where can I get indepth > > explanation for it? > > > > This is actually a long-lasting question I had with gnuplot help. Gnuplot > > uses very common words as command, which is easier for us to remember, > but > > also makes it much harder to get help through search engines like google. > > Usually I have to spend time going through the help manual in details to > > get > > what I needed. > > > > Thanks, > > > > Sincerely, > > Jon > > > > > > On Wed, Feb 9, 2011 at 2:27 PM, Thomas Sefzick > > <t.s...@fz...>wrote: > > > >> > >> you could use the parametric mode > >> > >> set parametric > >> set xrange [-2:1] > >> set trange [0:1] > >> plot t,sin(t) > >> > >> or use the special filename "+" and the ternary operator > >> > >> set xrange [-2:1] > >> plot '+' using ($1>=0.0?$1:0/0):(sin($1)) > >> > >> > >> gecko9922 wrote: > >> > > >> > Hi guys, > >> > i have a little problem. I want to plot a function, which i got from > >> > fitting some datapoints in just a fixed interval. How can i do this? > >> > > >> > For example: > >> > I want to plot the fitted function (or a function of choice) in an > >> > intervall [0:1] , but xrange should be [-1:2]. > >> > > >> > Thx for your help > >> > > >> > >> -- > >> View this message in context: > >> > http://old.nabble.com/Plot-a-function-in-defined-intervall-tp30885587p30886569.html > >> Sent from the Gnuplot - User mailing list archive at Nabble.com. > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio > XE: > >> Pinpoint memory and threading errors before they happen. > >> Find and fix more than 250 security defects in the development cycle. > >> Locate bottlenecks in serial and parallel code that limit performance. > >> http://p.sf.net/sfu/intel-dev2devfeb > >> _______________________________________________ > >> gnuplot-info mailing list > >> gnu...@li... > >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info > >> > > > ------------------------------------------------------------------------------ > > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > > Pinpoint memory and threading errors before they happen. > > Find and fix more than 250 security defects in the development cycle. > > Locate bottlenecks in serial and parallel code that limit performance. > > http://p.sf.net/sfu/intel-dev2devfeb > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > > > -- > View this message in context: > http://old.nabble.com/Plot-a-function-in-defined-intervall-tp30885587p30896450.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |