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: Clement L. <the...@gm...> - 2012-10-08 10:49:57
|
Hello, I'm trying to plot three spheres using set parametric. At the moment, I have this small script: ##### set parametric; set angle degree fx(u,v)=0.4*cos(u)*cos(v)+0.34 fy(u,v)=0.4*sin(u)*cos(v)+0.366 fz(v)=0.4*sin(v) gx(u,v)=0.7*cos(u)*cos(v) gy(u,v)=0.7*sin(u)*cos(v) gz(v)=0.7*sin(v) hx(u,v)=0.5*cos(u)*cos(v) hy(u,v)=0.5*sin(u)*cos(v) hz(v)=0.5*sin(v) splot fx(u,v),fy(u,v),fz(v),\ gx(u,v),gy(u,v),gz(v),\ hx(u,v),hy(u,v),hz(v) ###### Is there any way of independently changing the ranges of the dummy variables for each sphere? Thanks, Clement Law |
|
From: Thomas S. <t.s...@fz...> - 2012-10-08 09:38:29
|
use a different linetype for each plot: plot a.dat using 2:1 with lines lt 1 lc rgb "blue" plot b.dat using 2:1 with lines lt 2 lc rgb "red" gnuplotUser wrote: > > Thanks, Thomas. > > set terminal fig color dashed size 5,5 > > is able to show all the lines in the multiplot by the same color (even > though I chose different rgb settings for each of them). > > plot a.dat using 2:1 with lines lc rgb"blue" > plot b.dat using 2:1 with lines lc rgb"red" > > Is there a way to correct this? > > Regards, > Ethan > -- View this message in context: http://old.nabble.com/Can-I-add-color-to-lines-while-using-fig-terminal--tp34523653p34526409.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Leo B. <l_b...@us...> - 2012-10-07 17:05:14
|
Hi, I am seeing an issue the cairolatex terminal. After the first object
circle is placed on the canvas, the fillcolor is ignored and set to the
default (black). This does not happen for the pdfcairo terminal.
Here is a script to demonstrate:
set macros
set terminal push
set terminal cairolatex pdf color
set style fill solid 1.0
set xrange [0:5]; set yrange [0:5]
plotcmd="plot 1/0; set terminal pop; set terminal push; replot;"
c=0;
circle(x,y)=sprintf("c=c+1; set object c circle at %g,%g size 0.1
fillstyle fillcolor rgbcolor 'red';",x,y);
eval circle(1,1);
eval circle(1,2);
eval circle(1,3);
# cl.pdf will have one red and 2 black circles
set output 'cl.ltx'
@plotcmd
set terminal pdfcairo color
c=0;
eval circle(1,1);
eval circle(1,2);
eval circle(1,3);
# clf.pdf has all three red circles
set output 'clf.pdf'
@plotcmd
--
Leo Butler l_b...@us...
SDF Public Access UNIX System - http://sdf.lonestar.org
|
|
From: gnuplotUser <oth...@ao...> - 2012-10-07 15:49:35
|
Thanks, Thomas. set terminal fig color dashed size 5,5 but is able to show all the lines in the multiplot by the same color (even though I chose different rgb settings for each of them). Is there a way to correct this? Regards, Ethan -- View this message in context: http://old.nabble.com/Can-I-add-color-to-lines-while-using-fig-terminal--tp34523653p34524637.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2012-10-07 12:47:08
|
"help set terminal fig"
tell you:
Syntax:
set terminal fig {monochrome | color}
...
{solid | dashed}
...
you need to give the appropriate options to get colored
and dashed lines:
set terminal fig color dashed size 5,5
gnuplotUser wrote:
>
> Hello,
>
> I am exporting a plot using fig terminal under multiplot mode. But the
> exported image has only black lines. It works well if I don't use fig
> terminal, but I *do* need to use colored and dashed lines to be exported
> (for further editing on them). Below is snippet from my code.
>
> set term fig size 5 5
> set multiplot
> plot a.dat using 2:1 with lines lc rgb"red";
> set nomultiplot
> unset multiplot
>
> I'm using 4.4 version of gnuplot under Ubuntu Linux.
>> gnuplot --version
> gnuplot 4.4 patchlevel 3
>
>
--
View this message in context: http://old.nabble.com/Can-I-add-color-to-lines-while-using-fig-terminal--tp34523653p34524171.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: gnuplotUser <oth...@ao...> - 2012-10-07 08:59:02
|
Hello, I am exporting a plot using fig terminal under multiplot mode. But the exported image has only black lines. It works well if I don't use fig terminal, but I *do* need to use colored and dashed lines to be exported (for further editing on them). Below is snippet from my code. set term fig size 5 5 set multiplot plot a.dat using 2:1 with lines lc rgb"red"; set nomultiplot unset multiplot I'm using 4.4 version of gnuplot under Ubuntu Linux. > gnuplot --version gnuplot 4.4 patchlevel 3 -- View this message in context: http://old.nabble.com/Can-I-add-color-to-lines-while-using-fig-terminal--tp34523653p34523653.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-10-06 13:37:14
|
On 06.10.2012 14:20, gargarale wrote: > I want to change my default directory for gnuplot to my data folder on > Windows, without having to manually use ChDir or alike (which is currently > about 10 times a day). > > Having searched the web, the use of GNUPLOT.ini or .gnuplot seemed > applicable (with cd "folder" in the file), however I cannot seem to find > which folder to place this file so the command is run. See "help startup" and "help environment" for information where gnuplot.ini is supposed to be, and how you can change that location if you want to. That said, I'm not convinced you even need a gnuplot.ini for that. Windows users almost invariably start programs via desktop / start menu links. Those allow you to specify a starting directory. Wouldn't that be enough? |
|
From: walter h. <wh...@bf...> - 2012-10-06 13:35:11
|
I do not use that feature, but as a wild guess i would expect .gnuplot in my homedir. ~/.gnuplot To be fair i could not find it in the documentation now. re, wh Am 06.10.2012 14:20, schrieb gargarale: > > Hope you can help: > > I want to change my default directory for gnuplot to my data folder on > Windows, without having to manually use ChDir or alike (which is currently > about 10 times a day). > > Having searched the web, the use of GNUPLOT.ini or .gnuplot seemed > applicable (with cd "folder" in the file), however I cannot seem to find > which folder to place this file so the command is run. > > If anyone can shed any light it would be fantastic. > > Thanks! |
|
From: gargarale <gar...@gm...> - 2012-10-06 12:20:52
|
Hope you can help: I want to change my default directory for gnuplot to my data folder on Windows, without having to manually use ChDir or alike (which is currently about 10 times a day). Having searched the web, the use of GNUPLOT.ini or .gnuplot seemed applicable (with cd "folder" in the file), however I cannot seem to find which folder to place this file so the command is run. If anyone can shed any light it would be fantastic. Thanks! -- View this message in context: http://old.nabble.com/Changing-Directory-At-Start-up-using-.ini---.gnuplot-tp34521977p34521977.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: seb_kramm <seb...@ya...> - 2012-10-02 20:43:09
|
On 10/02/2012 07:52 PM, Hans-Bernhard Bröker wrote: > Except that it isn't. An even number of points can be just as correct. The actual > trick lies in the combination of the underlying function's periodicity, the ordinate > range, and the number of samples: you want to have a sampling distance that is an > integer fraction of the signal's period, i.e. > function_period / (range_max - range_min) * (samples - 1) > should be an integer. E.g. > set samples 100 > plot [0:9] x-floor(x) > matches your expectations just fine, because 1.0/9.0*99 = 11.0 You are absolutely right, thanks for these clarifications. I indeed assumed that one would always want to plot on an even range, which can't always be the case. Regards, |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-10-02 17:52:39
|
On 02.10.2012 09:38, seb_kramm wrote: > It's ok, you got the point anyway. Actually, I'm afraid you didn't. Not all of it, anyway. >> The actual solution would have been more 'set samples 101'. To understand why. > > Yes, odd vs. even number of samples, I got the point. Except that it isn't. An even number of points can be just as correct. The actual trick lies in the combination of the underlying function's periodicity, the ordinate range, and the number of samples: you want to have a sampling distance that is an integer fraction of the signal's period, i.e. function_period / (range_max - range_min) * (samples - 1) should be an integer. E.g. set samples 100 plot [0:9] x-floor(x) matches your expectations just fine, because 1.0/9.0*99 = 11.0 > But then it is not very clear to me why the default number of > samples is even, as the situation pointed out here can occur rather > frequently. And just as frequently, an odd number wouldn't be any better. It would just yield a different, equally unexpected result. |
|
From: seb_kramm <seb...@ya...> - 2012-10-02 07:39:03
|
Hello, > The attachment didn't make it past the mailing list processor. It's ok, you got the point anyway. On 10/02/2012 12:11 AM, Hans-Bernhard Bröker wrote: > Yes, it is. Oh, and it's not the floor() function that's "drifting" here. To see > what actually happens, I suggest you have a look at the output of > > set table > plot [0:10] x - floor(x) Very good suggestion indeed, thanks, this way things are obvious! > And no, 'set samples 1000' didn't actually solve the problem. It just made it small > enough so you no longer noticed it. > The actual solution would have been more 'set samples 101'. To understand why. Yes, odd vs. even number of samples, I got the point. But then it is not very clear to me why the default number of samples is even, as the situation pointed out here can occur rather frequently. Is there some particular reason ? I assume there is, as you guys probably already ran into that issue, I'm just curious. At first, if I need to compute some function values, I'd compute them at the beginning and the end of the considered interval, and, say, one value in the middle. If given more time, I'd compute two other values in the "middle of the middle" (1/4 and 3/4). And so on. So, the default instinctive number of samples would be odd. But maybe there is a counterpart to this approach that I don't see ? Or is it really not that important ? >> I understand that the number of samples can be changed to set the plot >> accuracy vs. computing time tradeoff, but I didn't expect that that >> parameter could produce "wrong" results if incorrectly set. > > The thing to be learned here is that the result isn't actually wrong. It's just not > what you expected. Sure, this is why I quoted "wrong", I meant "apparently wrong". I'm confident enough with Gnuplot to know that it is a very good piece of software when it comes to numerical computation! Regards, and thanks again for your detailed answer. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-10-01 22:11:55
|
On 01.10.2012 17:33, seb_kramm wrote: > While trying to plot a sawtooth wave (with 4.6 on Ubuntu), I noticed > that the following plot: > plot [0:10] x-floor(x) > produces some kind of vertical drifting, that gets magically reset at > the end of the plot (whatever the x range, actually). (see attached png) The attachment didn't make it past the mailing list processor. > This seems to be related to the number of samples. Indeed, 'set samples > 1000' solves the problem. But I was wondering if such a behaviour is > normal ? Yes, it is. Oh, and it's not the floor() function that's "drifting" here. To see what actually happens, I suggest you have a look at the output of set table plot [0:10] x - floor(x) and pay attention to both columns of data. And no, 'set samples 1000' didn't actually solve the problem. It just made it small enough so you no longer noticed it. The actual solution would have been more 'set samples 101'. To understand why. > I understand that the number of samples can be changed to set the plot > accuracy vs. computing time tradeoff, but I didn't expect that that > parameter could produce "wrong" results if incorrectly set. The thing to be learned here is that the result isn't actually wrong. It's just not what you expected. |
|
From: BBands <bb...@gm...> - 2012-10-01 21:24:59
|
Not enough granularity.
Try 'set samples 1000'.
Best,
John
On Mon, Oct 1, 2012 at 8:33 AM, seb_kramm <seb...@ya...> wrote:
> Hello gnuplot users,
>
> While trying to plot a sawtooth wave (with 4.6 on Ubuntu), I noticed that
> the following plot:
> plot [0:10] x-floor(x)
> produces some kind of vertical drifting, that gets magically reset at the
> end of the plot (whatever the x range, actually).
|
|
From: seb_kramm <seb...@ya...> - 2012-10-01 15:53:13
|
Hello gnuplot users, While trying to plot a sawtooth wave (with 4.6 on Ubuntu), I noticed that the following plot: plot [0:10] x-floor(x) produces some kind of vertical drifting, that gets magically reset at the end of the plot (whatever the x range, actually). (see attached png) I tried also plot [0:10] x-1.0*floor(x) to cast the int to floating-point, didn't change anything. This seems to be related to the number of samples. Indeed, 'set samples 1000' solves the problem. But I was wondering if such a behaviour is normal ? I understand that the number of samples can be changed to set the plot accuracy vs. computing time tradeoff, but I didn't expect that that parameter could produce "wrong" results if incorrectly set. I consider myself as a rather experienced gnuplot user, and it took me some time to fix this issue, a newbie might have struggled with this during hours on such a simple thing (and would probably have accused gnuplot of being buggy...) What do you think ? Is it worth fixing something (of course, in the case it *could* be fixed)? Or do you think it is okay this way ? Regards, |
|
From: walter h. <wh...@bf...> - 2012-09-28 16:19:35
|
Am 28.09.2012 18:01, schrieb Yub Yub:
>
>> ________________________________
>> From: walter harms <wh...@bf...>
>> To: gnu...@li...
>> Sent: Friday, September 28, 2012 10:34 AM
>> Subject: Re: [Gnuplot-info] Data File with Group-Indexed Lines
>>
>>
>> Am 28.09.2012 16:02, schrieb Yub Yub:
>>> Hi all, I'm new to gnuplot.
>>>
>>> I'm using gnuplot 4.6.0 on Ubuntu 12.04.
>>>
>>>
>>> I've done a bunch of reading of tutorials and documentation, though there are some things I'm having trouble figuring out how to do (or even if it's possible to do).
>>>
>>> In particular at the moment, I have the following issue -- which has been hard to search for solutions to, since the associated keywords are common to other questions and issues.
>>>
>>> I have a file with columns of data which I would like to plot -- which is simple enough.
>>> However, one of the columns is an index, which denotes which data-set the line belongs to.
>>> (The lines are all in one long mixed group -- there are no sections or extra newlines.)
>>>
>>> I would like to create a separate graph for each index in the file.
>>>
>>> I found in the documentation[1] how to use the ternary operator to omit values based on column values, but this approach has several problems.
>>>
>>> First, the documentation recommends setting points to undefined (1/0), which means that if I'm plotting "with linespoints", then any time there are consecutive lines in the file which have different indices, there is a break in the graph.
>>>
>>> Second, it seems that I would need to know all of the indices in the file before running gnuplot on it, so that I could tell it to plot each of the different indices. (Using a loop perhaps, but I'd still need to know them all beforehand.)
>>>
>>> One solution is to simply write a simple (eg. Python) script to parse the data file beforehand to sort/reformat it, break it into multiple files or sections, or something like that. Then it could create gnuplot code to hand it off to.
>>>
>>> However, I would like to know if I can accomplish this using only gnuplot, for an arbitrary file.
>>>
>>> Thank you so much!
>>> -Yub
>>>
>>>
>>
>> so far i understand you have a file with a index,value pair like that:
>>
>> 0 73 0 25 0 124302 000000.003107550
>> 0 74 0 28 0 150160 000000.003754000
>> 0 75 0 39 0 244268 000000.006106700
>> 0 76 1 87 0 259467 000000.006486675
>> 0 77 0 149 0 259537 000000.006488425
>> 0 78 0 32 0 268263 000000.006706575
>> 0 79 1 282 0 281296 000000.007032400
>> 0 80 0 481 0 281366 000000.007034150
>> 0 81 0 13 1 36992 000000.010924800
>> 0 82 1 134 1 56228 000000.011405700
>> 0 83 0 228 1 56298 000000.011407450
>> 0 84 1 100 1 77730 000000.011943250
>> 0 85 0 171 1 77800 000000.011945000
>> 0 86 0 115 1 77981 000000.011949525
>> 0 87 1 34 1 275359 000000.016883975
>>
>> lets assume that column 3 is your index and column 7 is you value.
>> I am not sure if gnuplot is intended to do such filtering. So i use
>> awk for that, i found it very flexible an easy to use and less fat
>> than certain other languages.
>>
>> awk '{ print $7 >>$3 }' [your file here]
>>
>> This would generate a file called 1 and a second called 0 feel free to ajust to you needs.
>> You can run that script from inside gnuplot also by using
>>
>> plot "<awk '{ if ($3==0) print $7 }' " but this would require a recalculation everytime
>> you want a plot.
>>
>>
>> re,
>> wh
>
>
> Sorry all, for the accidental empty message a little while ago. >_<
>
>
> Walter--
>
> Thank you!
> I forgot about the ability to call scripts like that from within gnuplot [1], that seems like it will be exactly what I need!
>
>
> And that was a good idea including some example data -- sorry I didn't think of it when I posted the question.
>
> Here is the full solution I have now. It's a bit ugly, but it seems to work just fine!
>
>
> If anyone has a more elegant solution, please let me know!
>
>
> blah.dat:
>
> 0 1 1
> 1 2 12
> 1 3 13
> 0 4 4
> 0 5 5
> 1 6 16
> 0 7 7
>
>
> gnuplot code:
>
> set key on outside
> plot for [groupIndex in "`awk '{ if ($1 != "" ) print $1 }' blah.dat | sort | uniq | sed ':a;N;!ba;s/\n/ /g'`"] "<awk '{ if ($1==".groupIndex.") print $2\" \"$3 }' blah.dat" using 1:2 title groupIndex with linespoints
>
>
> Explanation:
>
> awk '{ if ($1 != "" ) print $1 }' blah.dat | sort | uniq | sed ':a;N;!ba;s/\n/ /g
> Use awk to get indices of all lines,
>
I do not know how large your index is but i would use "sort -n" to force numeric.
Your sed seems to do more that replaceing \n with " " but i prefer to use tr for that
tr "\n" " " should do the job. (more easy to read afterwards).
re,
wh
> sort them (because uniq only works on consecutive lines),
>
> get the unique values (so that we only count each one once),
> use sed to change it from a new-line separated list to a space separated list.
>
> Enclose the above in `` so that gnuplot will do a substitution after running it as a system command [2].
>
>
> plot for [groupIndex in "..."]
> Plot stuff for each time through a loop [3] where we loop the variable groupIndex over the list from above.
>
>
> "<awk '{ if ($1==".groupIndex.") print $2\" \"$3 }' blah.dat"
> Filter the data based on Walter's suggestion, inserting the value of groupIndex.
> Based on the second example of [3] ( basename.".dat" ), it seems that you can concatenate strings using periods.
>
>
> Thanks again!
> -Yub
>
>
>
> [1] http://www.gnuplot.info/faq/faq.html#SECTION00082000000000000000
>
> [2] Page 39, "Substitution of system commands in backquotes": http://www.gnuplot.info/docs_4.6/gnuplot.pdf
>
> [3] Page 70, "Iteration": http://www.gnuplot.info/docs_4.6/gnuplot.pdf
>
>
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|
|
From: Yub Y. <yu...@ro...> - 2012-09-28 16:02:05
|
>________________________________
> From: walter harms <wh...@bf...>
>To: gnu...@li...
>Sent: Friday, September 28, 2012 10:34 AM
>Subject: Re: [Gnuplot-info] Data File with Group-Indexed Lines
>
>
>Am 28.09.2012 16:02, schrieb Yub Yub:
>> Hi all, I'm new to gnuplot.
>>
>> I'm using gnuplot 4.6.0 on Ubuntu 12.04.
>>
>>
>> I've done a bunch of reading of tutorials and documentation, though there are some things I'm having trouble figuring out how to do (or even if it's possible to do).
>>
>> In particular at the moment, I have the following issue -- which has been hard to search for solutions to, since the associated keywords are common to other questions and issues.
>>
>> I have a file with columns of data which I would like to plot -- which is simple enough.
>> However, one of the columns is an index, which denotes which data-set the line belongs to.
>> (The lines are all in one long mixed group -- there are no sections or extra newlines.)
>>
>> I would like to create a separate graph for each index in the file.
>>
>> I found in the documentation[1] how to use the ternary operator to omit values based on column values, but this approach has several problems.
>>
>> First, the documentation recommends setting points to undefined (1/0), which means that if I'm plotting "with linespoints", then any time there are consecutive lines in the file which have different indices, there is a break in the graph.
>>
>> Second, it seems that I would need to know all of the indices in the file before running gnuplot on it, so that I could tell it to plot each of the different indices. (Using a loop perhaps, but I'd still need to know them all beforehand.)
>>
>> One solution is to simply write a simple (eg. Python) script to parse the data file beforehand to sort/reformat it, break it into multiple files or sections, or something like that. Then it could create gnuplot code to hand it off to.
>>
>> However, I would like to know if I can accomplish this using only gnuplot, for an arbitrary file.
>>
>> Thank you so much!
>> -Yub
>>
>>
>
>so far i understand you have a file with a index,value pair like that:
>
>0 73 0 25 0 124302 000000.003107550
>0 74 0 28 0 150160 000000.003754000
>0 75 0 39 0 244268 000000.006106700
>0 76 1 87 0 259467 000000.006486675
>0 77 0 149 0 259537 000000.006488425
>0 78 0 32 0 268263 000000.006706575
>0 79 1 282 0 281296 000000.007032400
>0 80 0 481 0 281366 000000.007034150
>0 81 0 13 1 36992 000000.010924800
>0 82 1 134 1 56228 000000.011405700
>0 83 0 228 1 56298 000000.011407450
>0 84 1 100 1 77730 000000.011943250
>0 85 0 171 1 77800 000000.011945000
>0 86 0 115 1 77981 000000.011949525
>0 87 1 34 1 275359 000000.016883975
>
>lets assume that column 3 is your index and column 7 is you value.
>I am not sure if gnuplot is intended to do such filtering. So i use
>awk for that, i found it very flexible an easy to use and less fat
>than certain other languages.
>
>awk '{ print $7 >>$3 }' [your file here]
>
>This would generate a file called 1 and a second called 0 feel free to ajust to you needs.
>You can run that script from inside gnuplot also by using
>
>plot "<awk '{ if ($3==0) print $7 }' " but this would require a recalculation everytime
>you want a plot.
>
>
>re,
>wh
Sorry all, for the accidental empty message a little while ago. >_<
Walter--
Thank you!
I forgot about the ability to call scripts like that from within gnuplot [1], that seems like it will be exactly what I need!
And that was a good idea including some example data -- sorry I didn't think of it when I posted the question.
Here is the full solution I have now. It's a bit ugly, but it seems to work just fine!
If anyone has a more elegant solution, please let me know!
blah.dat:
0 1 1
1 2 12
1 3 13
0 4 4
0 5 5
1 6 16
0 7 7
gnuplot code:
set key on outside
plot for [groupIndex in "`awk '{ if ($1 != "" ) print $1 }' blah.dat | sort | uniq | sed ':a;N;!ba;s/\n/ /g'`"] "<awk '{ if ($1==".groupIndex.") print $2\" \"$3 }' blah.dat" using 1:2 title groupIndex with linespoints
Explanation:
awk '{ if ($1 != "" ) print $1 }' blah.dat | sort | uniq | sed ':a;N;!ba;s/\n/ /g
Use awk to get indices of all lines,
sort them (because uniq only works on consecutive lines),
get the unique values (so that we only count each one once),
use sed to change it from a new-line separated list to a space separated list.
Enclose the above in `` so that gnuplot will do a substitution after running it as a system command [2].
plot for [groupIndex in "..."]
Plot stuff for each time through a loop [3] where we loop the variable groupIndex over the list from above.
"<awk '{ if ($1==".groupIndex.") print $2\" \"$3 }' blah.dat"
Filter the data based on Walter's suggestion, inserting the value of groupIndex.
Based on the second example of [3] ( basename.".dat" ), it seems that you can concatenate strings using periods.
Thanks again!
-Yub
[1] http://www.gnuplot.info/faq/faq.html#SECTION00082000000000000000
[2] Page 39, "Substitution of system commands in backquotes": http://www.gnuplot.info/docs_4.6/gnuplot.pdf
[3] Page 70, "Iteration": http://www.gnuplot.info/docs_4.6/gnuplot.pdf
|
|
From: Yub Y. <yu...@ro...> - 2012-09-28 14:44:13
|
>________________________________
> From: walter harms <wh...@bf...>
>To: gnu...@li...
>Sent: Friday, September 28, 2012 10:34 AM
>Subject: Re: [Gnuplot-info] Data File with Group-Indexed Lines
>
>Am 28.09.2012 16:02, schrieb Yub Yub:
>> Hi all, I'm new to gnuplot.
>>
>> I'm using gnuplot 4.6.0 on Ubuntu 12.04.
>>
>>
>> I've done a bunch of reading of tutorials and documentation, though there are some things I'm having trouble figuring out how to do (or even if it's possible to do).
>>
>> In particular at the moment, I have the following issue -- which has been hard to search for solutions to, since the associated keywords are common to other questions and issues.
>>
>> I have a file with columns of data which I would like to plot -- which is simple enough.
>> However, one of the columns is an index, which denotes which data-set the line belongs to.
>> (The lines are all in one long mixed group -- there are no sections or extra newlines.)
>>
>> I would like to create a separate graph for each index in the file.
>>
>> I found in the documentation[1] how to use the ternary operator to omit values based on column values, but this approach has several problems.
>>
>> First, the documentation recommends setting points to undefined (1/0), which means that if I'm plotting "with linespoints", then any time there are consecutive lines in the file which have different indices, there is a break in the graph.
>>
>> Second, it seems that I would need to know all of the indices in the file before running gnuplot on it, so that I could tell it to plot each of the different indices. (Using a loop perhaps, but I'd still need to know them all beforehand.)
>>
>> One solution is to simply write a simple (eg. Python) script to parse the data file beforehand to sort/reformat it, break it into multiple files or sections, or something like that. Then it could create gnuplot code to hand it off to.
>>
>> However, I would like to know if I can accomplish this using only gnuplot, for an arbitrary file.
>>
>> Thank you so much!
>> -Yub
>>
>>
>
>so far i understand you have a file with a index,value pair like that:
>
>0 73 0 25 0 124302 000000.003107550
>0 74 0 28 0 150160 000000.003754000
>0 75 0 39 0 244268 000000.006106700
>0 76 1 87 0 259467 000000.006486675
>0 77 0 149 0 259537 000000.006488425
>0 78 0 32 0 268263 000000.006706575
>0 79 1 282 0 281296 000000.007032400
>0 80 0 481 0 281366 000000.007034150
>0 81 0 13 1 36992 000000.010924800
>0 82 1 134 1 56228 000000.011405700
>0 83 0 228 1 56298 000000.011407450
>0 84 1 100 1 77730 000000.011943250
>0 85 0 171 1 77800 000000.011945000
>0 86 0 115 1 77981 000000.011949525
>0 87 1 34 1 275359 000000.016883975
>
>lets assume that column 3 is your index and column 7 is you value.
>I am not sure if gnuplot is intended to do such filtering. So i use
>awk for that, i found it very flexible an easy to use and less fat
>than certain other languages.
>
>awk '{ print $7 >>$3 }' [your file here]
>
>This would generate a file called 1 and a second called 0 feel free to ajust to you needs.
>You can run that script from inside gnuplot also by using
>
>plot "<awk '{ if ($3==0) print $7 }' " but this would require a recalculation everytime
>you want a plot.
>
>
>re,
>wh
>
>
>
|
|
From: walter h. <wh...@bf...> - 2012-09-28 14:34:30
|
Am 28.09.2012 16:02, schrieb Yub Yub:
> Hi all, I'm new to gnuplot.
>
> I'm using gnuplot 4.6.0 on Ubuntu 12.04.
>
>
> I've done a bunch of reading of tutorials and documentation, though there are some things I'm having trouble figuring out how to do (or even if it's possible to do).
>
> In particular at the moment, I have the following issue -- which has been hard to search for solutions to, since the associated keywords are common to other questions and issues.
>
> I have a file with columns of data which I would like to plot -- which is simple enough.
> However, one of the columns is an index, which denotes which data-set the line belongs to.
> (The lines are all in one long mixed group -- there are no sections or extra newlines.)
>
> I would like to create a separate graph for each index in the file.
>
> I found in the documentation[1] how to use the ternary operator to omit values based on column values, but this approach has several problems.
>
> First, the documentation recommends setting points to undefined (1/0), which means that if I'm plotting "with linespoints", then any time there are consecutive lines in the file which have different indices, there is a break in the graph.
>
> Second, it seems that I would need to know all of the indices in the file before running gnuplot on it, so that I could tell it to plot each of the different indices. (Using a loop perhaps, but I'd still need to know them all beforehand.)
>
> One solution is to simply write a simple (eg. Python) script to parse the data file beforehand to sort/reformat it, break it into multiple files or sections, or something like that. Then it could create gnuplot code to hand it off to.
>
> However, I would like to know if I can accomplish this using only gnuplot, for an arbitrary file.
>
> Thank you so much!
> -Yub
>
>
so far i understand you have a file with a index,value pair like that:
0 73 0 25 0 124302 000000.003107550
0 74 0 28 0 150160 000000.003754000
0 75 0 39 0 244268 000000.006106700
0 76 1 87 0 259467 000000.006486675
0 77 0 149 0 259537 000000.006488425
0 78 0 32 0 268263 000000.006706575
0 79 1 282 0 281296 000000.007032400
0 80 0 481 0 281366 000000.007034150
0 81 0 13 1 36992 000000.010924800
0 82 1 134 1 56228 000000.011405700
0 83 0 228 1 56298 000000.011407450
0 84 1 100 1 77730 000000.011943250
0 85 0 171 1 77800 000000.011945000
0 86 0 115 1 77981 000000.011949525
0 87 1 34 1 275359 000000.016883975
lets assume that column 3 is your index and column 7 is you value.
I am not sure if gnuplot is intended to do such filtering. So i use
awk for that, i found it very flexible an easy to use and less fat
than certain other languages.
awk '{ print $7 >>$3 }' [your file here]
This would generate a file called 1 and a second called 0 feel free to ajust to you needs.
You can run that script from inside gnuplot also by using
plot "<awk '{ if ($3==0) print $7 }' " but this would require a recalculation everytime
you want a plot.
re,
wh
|
|
From: Yub Y. <yu...@ro...> - 2012-09-28 14:02:38
|
Hi all, I'm new to gnuplot. I'm using gnuplot 4.6.0 on Ubuntu 12.04. I've done a bunch of reading of tutorials and documentation, though there are some things I'm having trouble figuring out how to do (or even if it's possible to do). In particular at the moment, I have the following issue -- which has been hard to search for solutions to, since the associated keywords are common to other questions and issues. I have a file with columns of data which I would like to plot -- which is simple enough. However, one of the columns is an index, which denotes which data-set the line belongs to. (The lines are all in one long mixed group -- there are no sections or extra newlines.) I would like to create a separate graph for each index in the file. I found in the documentation[1] how to use the ternary operator to omit values based on column values, but this approach has several problems. First, the documentation recommends setting points to undefined (1/0), which means that if I'm plotting "with linespoints", then any time there are consecutive lines in the file which have different indices, there is a break in the graph. Second, it seems that I would need to know all of the indices in the file before running gnuplot on it, so that I could tell it to plot each of the different indices. (Using a loop perhaps, but I'd still need to know them all beforehand.) One solution is to simply write a simple (eg. Python) script to parse the data file beforehand to sort/reformat it, break it into multiple files or sections, or something like that. Then it could create gnuplot code to hand it off to. However, I would like to know if I can accomplish this using only gnuplot, for an arbitrary file. Thank you so much! -Yub [1] Bottom of page 84: http://www.gnuplot.info/docs_4.6/gnuplot.pdf |
|
From: walter h. <wh...@bf...> - 2012-09-28 13:48:48
|
Am 28.09.2012 09:07, schrieb NimaSam: > > i want to write a bashscript which uses gnuplot to measure the slope of a > line from a data set (t,y) > but only for example the last 100 data of this data set file should be used > for calculation!, then result of calculation should be saved in a txt file I am not sure that i understand your intentions. Do you want gnuplot to fit a line to your data ? re, wh |
|
From: Tony2 <iak...@gm...> - 2012-09-28 10:50:22
|
thank you Thomas! it works! Thomas Sefzick wrote: > > set term post eps enhanced color solid > > gives solid lines. > > > Tony2 wrote: >> >> Dear all, >> >> I have the following problem: >> I plot a three dimensional surface using 'splot' and 'set contour base'. >> It appears to be that contour lines in the final eps image don't have the >> line type that I have pre-defined in my user line styles. So instead of >> all contours having lt 1 (solid line) as I have defined, all the contour >> lines are dashed, dotted and whatever but solid. (but it looks like for >> png terminal everything works fine) >> I would be grateful for any help. The eps image and gnuplot script file >> are below. >> Thank you! >> >> P.S.: G N U P L O T >> Version 4.6 patchlevel 0 last modified 2012-03-04 >> Build System: Linux x86_64 >> >> >> http://old.nabble.com/file/p34489221/potential_alpha0.0.png >> Here is the gnuplot script: >> **************************************************** >> set term post eps enhanced color >> set output "potential_alpha0.0.eps" >> >> set linestyle 1 lc rgb "blue" lt 1 lw 1 >> set linestyle 2 lc rgb "navy" lt 1 lw 1 >> set linestyle 3 lc rgb "#9400D3" lt 1 lw 1 >> set linestyle 4 lc rgb "magenta" lt 1 lw 1 >> set linestyle 5 lc rgb "red" lt 1 lw 1 >> set linestyle 6 lc rgb "orange" lt 1 lw 1 >> >> set style increment userstyle >> >> a=-3 >> b=0.25 >> alpha = 0.0 >> set xlabel "|{/Symbol y}|" >> set ylabel "|{/Symbol f}|" >> set zlabel "U(|{/Symbol y}|,|{/Symbol f}|)" >> set samples 20, 20 >> set isosamples 21, 21 >> set cntrparam levels incremental -20,4,0 >> set linetype 1 >> set contour base >> set xzeroaxis lt 1 lw 2 lc rgb "black" >> set yzeroaxis lt 1 lw 2 lc rgb "black" >> set xrange [-4:4] >> set yrange [-4:4] >> f(x,y) = b*(x**4+y**4) + a*(x**2+y**2) - alpha*x**2*y**2 >> splot f(x,y) ls 2 >> >> set output >> set terminal x1 >> **************************************************** >> > > -- View this message in context: http://old.nabble.com/splot-fails-to-use-user-defined-line-styles-for-contour-base-tp34489221p34490945.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2012-09-28 09:57:35
|
Jon <devout1977 <at> gmail.com> writes: > > Dear All, > > There is an annoying issue I am faced with, and I would expect a simple > solution for it. > > Whenever I use say set xtics ("" 1,"" 2) to change display of xtics, I > don't know how to restore xtics into default setting. Similarly things > apply to say set tmargin etc. Is there way to restore default setting? > > I tried to google it, but it does not give back useful results and I thus > have to ask here. > > Thanks, > > Sincerely, > Jon 'reset' always works, but sets (nearly) everything to default values. you may use unset xtics ; set xtics or set xtics autofreq and unset tmargin |
|
From: Thomas S. <t.s...@fz...> - 2012-09-28 09:49:03
|
set term post eps enhanced color solid gives solid lines. Tony2 wrote: > > Dear all, > > I have the following problem: > I plot a three dimensional surface using 'splot' and 'set contour base'. > It appears to be that contour lines in the final eps image don't have the > line type that I have pre-defined in my user line styles. So instead of > all contours having lt 1 (solid line) as I have defined, all the contour > lines are dashed, dotted and whatever but solid. (but it looks like for > png terminal everything works fine) > I would be grateful for any help. The eps image and gnuplot script file > are below. > Thank you! > > P.S.: G N U P L O T > Version 4.6 patchlevel 0 last modified 2012-03-04 > Build System: Linux x86_64 > > > http://old.nabble.com/file/p34489221/potential_alpha0.0.png > Here is the gnuplot script: > **************************************************** > set term post eps enhanced color > set output "potential_alpha0.0.eps" > > set linestyle 1 lc rgb "blue" lt 1 lw 1 > set linestyle 2 lc rgb "navy" lt 1 lw 1 > set linestyle 3 lc rgb "#9400D3" lt 1 lw 1 > set linestyle 4 lc rgb "magenta" lt 1 lw 1 > set linestyle 5 lc rgb "red" lt 1 lw 1 > set linestyle 6 lc rgb "orange" lt 1 lw 1 > > set style increment userstyle > > a=-3 > b=0.25 > alpha = 0.0 > set xlabel "|{/Symbol y}|" > set ylabel "|{/Symbol f}|" > set zlabel "U(|{/Symbol y}|,|{/Symbol f}|)" > set samples 20, 20 > set isosamples 21, 21 > set cntrparam levels incremental -20,4,0 > set linetype 1 > set contour base > set xzeroaxis lt 1 lw 2 lc rgb "black" > set yzeroaxis lt 1 lw 2 lc rgb "black" > set xrange [-4:4] > set yrange [-4:4] > f(x,y) = b*(x**4+y**4) + a*(x**2+y**2) - alpha*x**2*y**2 > splot f(x,y) ls 2 > > set output > set terminal x1 > **************************************************** > -- View this message in context: http://old.nabble.com/splot-fails-to-use-user-defined-line-styles-for-contour-base-tp34489221p34490761.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: NimaSam <nim...@gm...> - 2012-09-28 07:07:25
|
i want to write a bashscript which uses gnuplot to measure the slope of a line from a data set (t,y) but only for example the last 100 data of this data set file should be used for calculation!, then result of calculation should be saved in a txt file -- View this message in context: http://old.nabble.com/bashscript-tp34488557p34488557.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |