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: Mahmood N. <nt_...@ya...> - 2013-09-27 16:48:13
|
>set format y "%c" It just show G G G M there is no number Regards, Mahmood ________________________________ From: Theo <th...@gm...> To: gnu...@li... Sent: Friday, September 27, 2013 7:32 PM Subject: Re: [Gnuplot-info] formatting ytics set format y "%c" ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ gnuplot-info mailing list gnu...@li... Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Theo <th...@gm...> - 2013-09-27 16:02:45
|
set format y "%c" |
|
From: Mahmood N. <nt_...@ya...> - 2013-09-27 15:43:03
|
Hi Is there anyway to rename the y values from scientific to characters? for example "3e+9" to "3G". There are some formatting methods with '%' but I can not find which one can do the job. Regards, Mahmood |
|
From: Sebastien K. <seb...@ya...> - 2013-09-27 10:03:56
|
Hello, On 09/25/2013 10:26 PM, Hans-Bernhard Bröker wrote: > Well, if you decided not to tell gnuplot in any way, shape or form, that this are > dates, rather than ordinary numbers, how is it supposed to know that? Thank you for answering. I am well aware that I need to tell gnuplot in some way that this is date-related data, my question was how ;-) > See "help time/date", and particularly "help timefmt". Indeed, the last command is what I was looking for (input date format) > You'll have to change your input format, too. Week-of-year is not a supported > date format. Ok, I will change the data in file, add a field with a valid date format that can be read and plotted with a correct ranking by gnuplot, and use xticslabel to have week numbers on the x-axis. I'll let you know.. |
|
From: Ethan A M. <eam...@gm...> - 2013-09-27 05:25:55
|
On Thursday, 26 September 2013, Brian Osborne wrote: > All, > > I'm making nice clustered histograms but sometimes there are so many bars in the cluster and the bars are so narrow that there's no space within the bars to color, they are all black. Not so informative! > > Here's example code: > > reset > set title 'Test' > set terminal svg > set output test.svg > set style fill solid 1.00 border lt -1 > set style data histograms > set style histogram clustered gap 1 > set xtics border rotate by -90 > set auto x > > How do I tell gnuplot either to have no bar border or set the border to the same color as the bar? set style fill solid 1.0 noborder > Thanks again, > > Brian O. -- Tradition is not the worship of ashes, but the preservation of fire. - Gustav Mahler |
|
From: Brian O. <bos...@ve...> - 2013-09-26 23:07:18
|
All, I'm making nice clustered histograms but sometimes there are so many bars in the cluster and the bars are so narrow that there's no space within the bars to color, they are all black. Not so informative! Here's example code: reset set title 'Test' set terminal svg set output test.svg set style fill solid 1.00 border lt -1 set style data histograms set style histogram clustered gap 1 set xtics border rotate by -90 set auto x How do I tell gnuplot either to have no bar border or set the border to the same color as the bar? Alternatively I guess I could make the diagram much wider, would that work? Thanks again, Brian O. |
|
From: Hans-Bernhard B. <HBB...@T-...> - 2013-09-25 20:26:35
|
Am 25.09.2013 19:00, schrieb Sebastien Kramm: > # week;year;value > 50;2013;10 > 51;2013;11 > 2;2014;12 > > with: > plot "datafile" using $1:$3 > then week 2 will appear *before* week 51, and what I want on the x-axis is: Well, if you decided not to tell gnuplot in any way, shape or form, that this are dates, rather than ordinary numbers, how is it supposed to know that? See "help time/date", and particularly "help timefmt". You'll have to change your input format, too. Week-of-year is not a supported date format. |
|
From: Sebastien K. <seb...@ya...> - 2013-09-25 17:20:02
|
Dear gnuplot users and developpers, I want to plot a datafile were the x-axis data values are the week numbers of a year, stored in the datafile. I am producing the datafile from some other application, so I can easily change what is stored in it, if needed. My problem is that for a given year (from september to july), week 2 is after week 51. If I plot the following toy file: # week;year;value 50;2013;10 51;2013;11 2;2014;12 with: plot "datafile" using $1:$3 then week 2 will appear *before* week 51, and what I want on the x-axis is: 50 51 2 I checked out the "set format" command, but it seems to be only about format rendering, my problem is about input date format. Any hint on the easiest way to do this ? Thank you |
|
From: Leo B. <l_b...@us...> - 2013-09-19 15:31:19
|
> From: Leo Butler <l_b...@us...>
> CC: <gnu...@li...>
>
>
> > Date: Thu, 19 Sep 2013 04:51:31 -0700
> > From: "atoms.h" <tho...@gm...>
> > Content-Type: text/plain; charset="us-ascii"
> >
> > Hi,
> >
> > I'm trying to make use of the iteration feature, so far unsuccessfully. I
> > want to plot files in different directories with the same file name. All in
> > one pdf documents. The way I construct my paths is by means of string
> > variables:
> >
> > $ basefolder = '../data/scalePr/'
> > $ folder1 = '0.90'
> > $ folder2 = '0.95'
> > $ folder3 = '0.97'
> > $ folder4 = '1.00'
> > $ file1 = basefolder.folder1."/".filename.".dat"
> > $ file2 = basefolder.folder2."/".filename.".dat"
> > $ file3 = basefolder.folder3."/".filename.".dat"
> > $ file4 = basefolder.folder4."/".filename.".dat"
> >
> > I haven't figured out a way to iterate through variable names like
> >
> > $ file(n) = basefolder.folder.sprintf("%d",n)."/".filename.".dat"
> >
> > (which obviously doesn't work) to be able to do multiple plots in one
> > command:
> >
> > $ do for [i=1:4]{
> > $ splot file(i)
> > $ }
> >
> > If anyone has an idea how to iterate variable names it would be most
> > appreciated!
>
> It is probably best to use strings with separators to implement a type
> of read-only string array. Here is one such effort
>
> gnuplot> directory="/home/user"
> gnuplot> files="a0 a1 a2 a3 "
> gnuplot> sep=" "
> gnuplot> c=strstrt(files,sep);
> gnuplot>
> gnuplot> while (c) { w=sprintf("%s/%s",directory,files[0:c-1]);
> more> print w;
> more> files=files[c+1:*]
> more> c=strstrt(files,sep);
> more> }
> /home/user/a0
> /home/user/a1
> /home/user/a2
> /home/user/a3
>
> With a bit more work you can make a custom iterator:
>
> gnuplot> files="a0 a1 a2 a3 a4 a5 a6 "
> gnuplot> iterate_over_(string,sep,cmd,s,c)=(c == 0 ? s :\
> >iterate_over_(string[c+1:*],sep,cmd,s . (c == -1 ? "" : sprintf(cmd,string[0:with_iterate_over_c-1])), strstrt(string[c+1:*],sep)));
That should have been:
iterate_over_(string,sep,cmd,s,c)=(c == 0 ? s :\
iterate_over_(string[c+1:*],sep,cmd,s . (c == -1 ? "" : sprintf(cmd,string[0:c-1])), strstrt(string[c+1:*],sep)));
I made a mistake copying from my work buffer, I guess.
To explain: iterate_over_ is a tail-recursive function that
recursively assembles a command string s, using the sprintf prototype
cmd, and the input string string which is separated by sep.
> gnuplot> iterate_over(string,sep,cmd)=iterate_over_(string,sep,cmd,"",-1);
You can eval the output of iterate_over, or you could define a 3rd
function that does that for you.
> gnuplot>
> gnuplot> print iterate_over(files,sep,"file='%s'; splot directory .'/'. file;\n")
> file='a0'; splot directory .'/'. file;
> file='a1'; splot directory .'/'. file;
> file='a2'; splot directory .'/'. file;
> file='a3'; splot directory .'/'. file;
> file='a4'; splot directory .'/'. file;
> file='a5'; splot directory .'/'. file;
> file='a6'; splot directory .'/'. file;
Leo
|
|
From: Leo B. <l_b...@us...> - 2013-09-19 13:54:08
|
> Date: Thu, 19 Sep 2013 04:51:31 -0700
> From: "atoms.h" <tho...@gm...>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> I'm trying to make use of the iteration feature, so far unsuccessfully. I
> want to plot files in different directories with the same file name. All in
> one pdf documents. The way I construct my paths is by means of string
> variables:
>
> $ basefolder = '../data/scalePr/'
> $ folder1 = '0.90'
> $ folder2 = '0.95'
> $ folder3 = '0.97'
> $ folder4 = '1.00'
> $ file1 = basefolder.folder1."/".filename.".dat"
> $ file2 = basefolder.folder2."/".filename.".dat"
> $ file3 = basefolder.folder3."/".filename.".dat"
> $ file4 = basefolder.folder4."/".filename.".dat"
>
> I haven't figured out a way to iterate through variable names like
>
> $ file(n) = basefolder.folder.sprintf("%d",n)."/".filename.".dat"
>
> (which obviously doesn't work) to be able to do multiple plots in one
> command:
>
> $ do for [i=1:4]{
> $ splot file(i)
> $ }
>
> If anyone has an idea how to iterate variable names it would be most
> appreciated!
It is probably best to use strings with separators to implement a type
of read-only string array. Here is one such effort
gnuplot> directory="/home/user"
gnuplot> files="a0 a1 a2 a3 "
gnuplot> sep=" "
gnuplot> c=strstrt(files,sep);
gnuplot>
gnuplot> while (c) { w=sprintf("%s/%s",directory,files[0:c-1]);
more> print w;
more> files=files[c+1:*]
more> c=strstrt(files,sep);
more> }
/home/user/a0
/home/user/a1
/home/user/a2
/home/user/a3
With a bit more work you can make a custom iterator:
gnuplot> files="a0 a1 a2 a3 a4 a5 a6 "
gnuplot> iterate_over_(string,sep,cmd,s,c)=(c == 0 ? s :\
>iterate_over_(string[c+1:*],sep,cmd,s . (c == -1 ? "" : sprintf(cmd,string[0:with_iterate_over_c-1])), strstrt(string[c+1:*],sep)));
gnuplot> iterate_over(string,sep,cmd)=iterate_over_(string,sep,cmd,"",-1);
gnuplot>
gnuplot> print iterate_over(files,sep,"file='%s'; splot directory .'/'. file;\n")
file='a0'; splot directory .'/'. file;
file='a1'; splot directory .'/'. file;
file='a2'; splot directory .'/'. file;
file='a3'; splot directory .'/'. file;
file='a4'; splot directory .'/'. file;
file='a5'; splot directory .'/'. file;
file='a6'; splot directory .'/'. file;
Leo
|
|
From: atoms.h <tho...@gm...> - 2013-09-19 11:51:37
|
Hi,
I'm trying to make use of the iteration feature, so far unsuccessfully. I
want to plot files in different directories with the same file name. All in
one pdf documents. The way I construct my paths is by means of string
variables:
$ basefolder = '../data/scalePr/'
$ folder1 = '0.90'
$ folder2 = '0.95'
$ folder3 = '0.97'
$ folder4 = '1.00'
$ file1 = basefolder.folder1."/".filename.".dat"
$ file2 = basefolder.folder2."/".filename.".dat"
$ file3 = basefolder.folder3."/".filename.".dat"
$ file4 = basefolder.folder4."/".filename.".dat"
I haven't figured out a way to iterate through variable names like
$ file(n) = basefolder.folder.sprintf("%d",n)."/".filename.".dat"
(which obviously doesn't work) to be able to do multiple plots in one
command:
$ do for [i=1:4]{
$ splot file(i)
$ }
If anyone has an idea how to iterate variable names it would be most
appreciated!
Kind regards,
Thomas
--
View this message in context: http://gnuplot.10905.n7.nabble.com/string-variables-and-iteration-gnuplot-4-6-tp17670.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Elias A. <eli...@gm...> - 2013-09-17 13:01:15
|
Hi, With ’set view’ (or by dragging with the mouse), I can set two angles of rotation for the viewpoint in a ‘splot’: ‘rot_x’ and ‘rot_z’. Is there also a way to set a “rot_y”? By way of example, consider the following plot of a spiral around the z axis (my actual plot is similar, but a bit more complicated.): set map cyl set zzeroax ls -1 splot [-5:5] [-5:5] '+' u ($1*pi):1:(1) w l Now, I would like to have the z axis point “diagonally into the screen”, so that it looks like the spiral is going “off into the distance“, if you will. (Note: I am not asking about perspective projection; that might be nice for my plot, but is not required.) Elias |
|
From: Ethan A M. <eam...@gm...> - 2013-09-10 05:04:25
|
On Monday, 09 September 2013, Matthew Clay wrote: > Hi, > > First, I saw a related post about my question from the late 90's, and > couldn't find anything else...so I figured I'd email the mailing list. > The problem is pretty simple: I have line plots with 10000's of data > points, so differentiating between multiple data sets on a single plot > is very difficult with setting the linetype (they all pretty much look > like solid lines). Instead, I'd like to use linespoints with symbols > popping up at a reasonable frequency. Anybody know how to do this? Current gnuplot (version 4.6) allows you to attach a "pointinterval" property, "pi" for short. See for example the second plot in http://gnuplot.sourceforge.net/demo/dashcolor.html Ethan -- Tradition is not the worship of ashes, but the preservation of fire. - Gustav Mahler |
|
From: Matthew C. <mp...@gm...> - 2013-09-10 04:56:05
|
Hi, First, I saw a related post about my question from the late 90's, and couldn't find anything else...so I figured I'd email the mailing list. The problem is pretty simple: I have line plots with 10000's of data points, so differentiating between multiple data sets on a single plot is very difficult with setting the linetype (they all pretty much look like solid lines). Instead, I'd like to use linespoints with symbols popping up at a reasonable frequency. Anybody know how to do this? Thanks for the help. Thanks, Matthew |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2013-09-05 22:31:43
|
On 05.09.2013 12:52, U Maennl wrote: > I have the following problem for a school project. > We collected data from a diode with an resistor in series. > Now I am trying to fit this data in order to get the value of the series > resistance. > The following formula I used: > I = I0*exp((x-I*Rs)/nkT-1) (x=V) via I0, Rs, n, T=297 > I know the problem could be solved by change to V = ... but I like to keep > V on the x-axies. You'll want to do a "3D fit" of a function that describes your equation, i.e., something like this: implicit(V,I) = I0*exp((U-I*Rs)/n/k/T - 1.0) - I T=297.0 fit implicit(x,y) 'data' using 1:2:(0.0):(1.0) via I0,Rs,n,T The drawback is that the z errors are totally bogus, and have no relation at all to your data's precision. So don't put too much trust into the result, and none whatsoever into the parameter errors you get. |
|
From: U M. <uli...@gm...> - 2013-09-05 10:52:15
|
Hi, I have the following problem for a school project. We collected data from a diode with an resistor in series. Now I am trying to fit this data in order to get the value of the series resistance. The following formula I used: I = I0*exp((x-I*Rs)/nkT-1) (x=V) via I0, Rs, n, T=297 I know the problem could be solved by change to V = ... but I like to keep V on the x-axies. Kind regards Uli |
|
From: Tom L. <tl...@cp...> - 2013-09-04 20:50:02
|
I feel your pain..!! I can't bear to move to a bitmap format, so... I try to espouse EPS, from the epslatex terminal. But it requires a LaTeX install- no probs for you, since you're in Linux... And miktex is easy enough on a PC... And then there's the problem of embedding a preview so it's not a red X in Word; either a low res one, that looks terrible, or a high res one, that makes the EPS as big as a bitmap... And then the recipient may not send to a PS printer or virtual printer, and the horrible preview gets printed.. :-( Every time I go around this loop, it becomes clear the problem is.... Word...!! I wish MS and Adobe could settle whatever spat it is that means you can't just drop a PDF into Word like I do in <any other program you can name> on my Mac... Or, I wish I could make Word vanish, to be replaced by LaTeX.... ~Tom On 4 Sep 2013, at 14:04, kintantee wrote: > Hello - > > I am using the EMF terminal to create plots for insertion into Microsoft > Word documents (a necessary evil, do you have better idea?). > > How are the fonts handled for this terminal? Are there environment variables > that need to be set? I have been able to apply a few basic fonts (Times, > Symbol, Arial [default?]) by trial and error. > > I am using Gnuplot 4.6.3 in Linux. > > Thanks! > > > > -- > View this message in context: http://gnuplot.10905.n7.nabble.com/font-handling-in-emf-terminal-tp17658.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: kintantee <jes...@un...> - 2013-09-04 20:04:28
|
Hello - I am using the EMF terminal to create plots for insertion into Microsoft Word documents (a necessary evil, do you have better idea?). How are the fonts handled for this terminal? Are there environment variables that need to be set? I have been able to apply a few basic fonts (Times, Symbol, Arial [default?]) by trial and error. I am using Gnuplot 4.6.3 in Linux. Thanks! -- View this message in context: http://gnuplot.10905.n7.nabble.com/font-handling-in-emf-terminal-tp17658.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Ethan A M. <eam...@gm...> - 2013-09-04 05:50:32
|
On Tuesday, 03 September 2013, Mahmood Naderan wrote: > I think awk is faster than strcol. Is that right? Both awk and strcol have to actually parse the line, so I suspect if speed is the issue then plot '< grep M file' is faster than either of them. Ethan > > > > Regards, > Mahmood > > > > ________________________________ > From: Leo Butler <l_b...@us...> > To: BBands <bb...@gm...> > Cc: gnu...@li... > Sent: Wednesday, September 4, 2013 12:53 AM > Subject: Re: [Gnuplot-info] ploting if a special character exist in the line > > > > Another way is to use the string operator: stringcolumn(3) or the > shorthand strcol(3). I should have seen that to start with. > > Thanks, I wasn't aware of this. So you would use > > plot "data.txt" u 1:(strcol($3) eq 'M' ? $2 : 1/0) > > Leo > > > -- Tradition is not the worship of ashes, but the preservation of fire. - Gustav Mahler |
|
From: BBands <bb...@gm...> - 2013-09-04 05:46:02
|
Don't know about speed, but strcol() will work where awk isn't available.
jab
On Tue, Sep 3, 2013 at 10:20 PM, Mahmood Naderan <nt_...@ya...> wrote:
> I think awk is faster than strcol. Is that right?
|
|
From: Mahmood N. <nt_...@ya...> - 2013-09-04 05:20:33
|
I think awk is faster than strcol. Is that right? Regards, Mahmood ________________________________ From: Leo Butler <l_b...@us...> To: BBands <bb...@gm...> Cc: gnu...@li... Sent: Wednesday, September 4, 2013 12:53 AM Subject: Re: [Gnuplot-info] ploting if a special character exist in the line Another way is to use the string operator: stringcolumn(3) or the shorthand strcol(3). I should have seen that to start with. Thanks, I wasn't aware of this. So you would use plot "data.txt" u 1:(strcol($3) eq 'M' ? $2 : 1/0) Leo ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ gnuplot-info mailing list gnu...@li... https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Leo B. <l_b...@us...> - 2013-09-03 20:23:43
|
Another way is to use the string operator: stringcolumn(3) or the shorthand strcol(3). I should have seen that to start with. Thanks, I wasn't aware of this. So you would use plot "data.txt" u 1:(strcol($3) eq 'M' ? $2 : 1/0) Leo |
|
From: Mahmood N. <nt_...@ya...> - 2013-09-03 18:08:33
|
The awk command works fine. Thank you all for the effort.
plot "< awk '/M$/{print $1\" \"$2}' data.txt" u 2
Regards,
Mahmood
________________________________
From: BBands <bb...@gm...>
To: Leo Butler <l_b...@us...>; gnuplot <gnu...@li...>
Sent: Tuesday, September 3, 2013 10:00 PM
Subject: Re: [Gnuplot-info] ploting if a special character exist in the line
Another way is to use the string operator: stringcolumn(3) or the
shorthand strcol(3). I should have seen that to start with.
John
On Tue, Sep 3, 2013 at 10:16 AM, Leo Butler
<l_b...@us...> wrote:
> It should be ($3 eq 'M' ? $2 : 1/0) except that $3 is parsed as a
> number, not a string, so even then you don't get what you want.
>
> So I expect that it compares the third column to 'M' and on a match return the second column. Isn't that? Now I receive
>
> None-numeric string found where a numeric expression was expected.
>
> I think
>
> plot "< awk '/M$/{print $1\" \"$2}' data.txt" u 1:2
>
> does what you want.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
gnuplot-info mailing list
gnu...@li...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|
|
From: Leo B. <l_b...@us...> - 2013-09-03 17:35:45
|
>From mailnull Tue Sep 3 16:50:17 2013 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of lists.sourceforge.net designates 172.29.29.180 as permitted sender) client-ip=172.29.29.180; env...@li...; helo=lists.sourceforge.net; Date: Tue, 3 Sep 2013 09:49:33 -0700 From: Mahmood Naderan <nt_...@ya...> Reply-To: Mahmood Naderan <nt_...@ya...> Content-Type: text/plain; charset="iso-8859-1" Thanks for the quick reply. I understood it but I receive error. Again here is the data file 100 10 M 150 20 M 30 40 H 50 90 M So I ran plot "data.txt" u 1:($3=='M':$2:1/0) It should be ($3 eq 'M' ? $2 : 1/0) except that $3 is parsed as a number, not a string, so even then you don't get what you want. So I expect that it compares the third column to 'M' and on a match return the second column. Isn't that? Now I receive None-numeric string found where a numeric expression was expected. I think plot "< awk '/M$/{print $1\" \"$2}' data.txt" u 1:2 does what you want. Leo |
|
From: BBands <bb...@gm...> - 2013-09-03 17:30:45
|
Another way is to use the string operator: stringcolumn(3) or the
shorthand strcol(3). I should have seen that to start with.
John
On Tue, Sep 3, 2013 at 10:16 AM, Leo Butler
<l_b...@us...> wrote:
> It should be ($3 eq 'M' ? $2 : 1/0) except that $3 is parsed as a
> number, not a string, so even then you don't get what you want.
>
> So I expect that it compares the third column to 'M' and on a match return the second column. Isn't that? Now I receive
>
> None-numeric string found where a numeric expression was expected.
>
> I think
>
> plot "< awk '/M$/{print $1\" \"$2}' data.txt" u 1:2
>
> does what you want.
|