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
(6) |
Oct
(3) |
Nov
(2) |
Dec
|
|
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. |
|
From: Jon <dev...@gm...> - 2012-09-28 00:48:34
|
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
|
|
From: Tony2 <iak...@gm...> - 2012-09-27 21:53:03
|
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.
Thank you!
Here is the gnuplot script:
****************************************************
set term post eps enhanced color
set output "potential_alpha0.0.eps"
unset style
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 hidden3d
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
****************************************************
http://old.nabble.com/file/p34489221/potential_alpha0.0.png
--
View this message in context: http://old.nabble.com/splot-fails-to-use-user-defined-line-styles-for-contour-base-tp34489221p34489221.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Thomas S. <t.s...@fz...> - 2012-09-26 10:44:10
|
why do you need 'replot'? wouldn't it be enough to: set terminal postscript eps enhanced colour dashed lw 1 "Helvetica" 14 set output "1.eps" plot "./ReportDataConvergence.out" u 1:10 w l set output "2.eps" plot "./ReportDataConvergence.out" u 1:7 w l set output nina_n wrote: > > Hallo everyone, > > to save the plot-results in a eps file, I have written a save.plt file as > follows: > > set terminal postscript eps enhanced colour dashed lw 1 "Helvetica" 14 > set output "1.eps" > replot > > giving the the command : load 'save.plt' the 1.eps will be generated. it > works ! > > my problem: > > In order to save several plots all at once, I have enhanced the file > save.plt as follows and it doesn't work. > > set terminal postscript eps enhanced colour dashed lw 1 "Helvetica" 14 > > > set terminal postscript eps enhanced colour dashed lw 1 "Helvetica" 14 > plot "./ReportDataConvergence.out" u 1:10 w l > set output "1.eps" > replot > > plot "./ReportDataConvergence.out" u 1:7 w l > set output "2.eps" > replot > > the problem is the the first eps file 1.eps will be overwritten by the > 2.eps and the plot is also shifted .... > > I would be very gratefull, if anybody could help me ! > > Best regards > Nina > > > -- View this message in context: http://old.nabble.com/save-the-current-plot-as-a-eps-or-postscript---file-tp34477895p34481836.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Konstantin L. <ko...@ko...> - 2012-09-25 07:07:14
|
Thank you Thomas and Marek, division by zero is the solution. On 09/24/2012 04:38 PM, Thomas Sefzick wrote: > Konstantin Lübeck <konze <at> konze.org> writes: > >> I would like to plot a function with a jump discontinuity. I've figured >> out that I can use an if-then-else operator. Here is an example: >> >> gnuplot> f(x) = f(x) = (x<2) ? x**2 : 1 >> >> This works fine but I don't want a line between those functions. > > plot two functions: > > plot (x<2)?x**2:0/0 linetype 1, (x>=2)?1.:0/0 linetype 1 > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > -- PGP erwünscht, ich bin gerne zum Key-Austausch bereit. Konstantin Lübeck |
|
From: <she...@be...> - 2012-09-24 21:02:21
|
I would like to plot two 3D surfaces like the ones in the upper right corner of the http://www.gnuplot.info home page. However I would like the surface that looks like a simple plane to be transparent. How can I do this? Thank you, Dan |
|
From: Thomas S. <t.s...@fz...> - 2012-09-24 14:38:46
|
Konstantin Lübeck <konze <at> konze.org> writes: > I would like to plot a function with a jump discontinuity. I've figured > out that I can use an if-then-else operator. Here is an example: > > gnuplot> f(x) = f(x) = (x<2) ? x**2 : 1 > > This works fine but I don't want a line between those functions. plot two functions: plot (x<2)?x**2:0/0 linetype 1, (x>=2)?1.:0/0 linetype 1 |
|
From: Konstantin L. <ko...@ko...> - 2012-09-22 11:31:28
|
Hallo, I would like to plot a function with a jump discontinuity. I've figured out that I can use an if-then-else operator. Here is an example: gnuplot> f(x) = f(x) = (x<2) ? x**2 : 1 This works fine but I don't want a line between those functions. I hope someone can help me. Best regards, Konstantin -- PGP erwünscht, ich bin gerne zum Key-Austausch bereit. Konstantin Lübeck |
|
From: Tom C. <ma...@as...> - 2012-09-19 16:37:50
|
Hi, I would like to produce a plot that consists of a few circles, with the outside of each circle hatched in a different way. So the intersection of all the circles has no hatching, and areas that are outside of more than one circle have more than one hatch. I've tried experimenting with 'filledcurves', but I can't even fill the area outside of a single circle. Is it possible to produce the kind of plot I would like in gnuplot? Thanks for any help. Tom |
|
From: Jon <dev...@gm...> - 2012-09-17 22:38:19
|
I would guess that each graph is too small such that the title text cannot be contained in the key space. Can you remove title (by using notitle with plot) and see what comes out? As to landscape plot, I myself never get successful result, maybe you can let me know when you figure it out. -- Jon On Sun, Sep 16, 2012 at 10:30 PM, David Hinchee <dlh...@co...> wrote: > Hi, > > I'm trying to create a pdf file from gnuplot. I'm using a script that > uses multiplot to create a 3 x 3 matrix of graphs and would like to > present the output as one-page landscape pdf file that will print on a > single 8.5 x 11 sheet. When I run the script I get the following > message (repeated nine times for each plot in the matrix): > > Warning - difficulty printing plot titles into key > > Gnuplot outputs a pdf file but I get an error when I try to view it. The > only terminal command I use is set terminal pdf. > > Any thoughts on what's going on? > > Thanks > > David > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: BBands <bb...@gm...> - 2012-09-17 18:53:12
|
What platform, version?
Have you tried 'set term pdf enhanced'?
John
On Sun, Sep 16, 2012 at 8:30 PM, David Hinchee <dlh...@co...> wrote:
> Hi,
>
> I'm trying to create a pdf file from gnuplot. I'm using a script that
> uses multiplot to create a 3 x 3 matrix of graphs and would like to
> present the output as one-page landscape pdf file that will print on a
> single 8.5 x 11 sheet. When I run the script I get the following
> message (repeated nine times for each plot in the matrix):
>
> Warning - difficulty printing plot titles into key
>
> Gnuplot outputs a pdf file but I get an error when I try to view it. The
> only terminal command I use is set terminal pdf.
|
|
From: David H. <dlh...@co...> - 2012-09-17 03:31:23
|
Hi, I'm trying to create a pdf file from gnuplot. I'm using a script that uses multiplot to create a 3 x 3 matrix of graphs and would like to present the output as one-page landscape pdf file that will print on a single 8.5 x 11 sheet. When I run the script I get the following message (repeated nine times for each plot in the matrix): Warning - difficulty printing plot titles into key Gnuplot outputs a pdf file but I get an error when I try to view it. The only terminal command I use is set terminal pdf. Any thoughts on what's going on? Thanks David |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-09-13 19:03:02
|
On 13.09.2012 19:31, Jon wrote: > I am trying to use splot to show 3D vision on some dataset. But it seems > give unrealistic peaks at the four corners. The command I used is > > set dgrid3d 50,50 > sp 'fort.88' u 1:2:3 w pm3d It's very hard to make sense of this description if you show neither a representative data set nor gnuplot output produced by those commands. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2012-09-13 18:55:08
|
On 13.09.2012 06:13, Jon wrote: > I tried to use epslatex terminal to draw dotted curves. The same script and > I run under linux and windows using gnuplot 4.4.3 and wguplot 4.6.0, the > different effects I obtained. Linux_gnuplot gives correct dotted curves, > while windows_gnuplot always gives solid lines. You've changed two things at once: the operating system and the version of gnuplot. How did you arrive at the conclusion that it was the change operating system that caused the difference in behaviour? As to whether dotted curves were any more correct than solid ones in that case is impossible for anyone out here to determine, as you didn't show that same script you used. |
|
From: Jon <dev...@gm...> - 2012-09-13 17:31:31
|
Dear All, I am trying to use splot to show 3D vision on some dataset. But it seems give unrealistic peaks at the four corners. The command I used is set dgrid3d 50,50 sp 'fort.88' u 1:2:3 w pm3d Somebody told me it could be due to the fitting scheme used to interpolate through the scattered dataset. Is this the case? If so, how could the interpolation be turned off and use the simplest linear interpolation only? By the way, if I only use sp 'fort.88' u 1:2:3 w l it's able to give all the subtle details of the data, how should I possibly do to preserve the honest feature of the data, but give myself a better view using color and contour? Thank you very much, Sincerely, Jon |