Re: differences between u 1:2 and using ($1):($2)

Thomas Sefzick <[email protected]> Sun, 24 Oct 2010 11:14:15 -0700 (PDT)
Newsgroups gmane.comp.graphics.gnuplot.bugs
Message-ID <[email protected]>
"$1" is a shorthand for "column(1)", but for timedata you need to use
"timecolumn(1)":

plot 'timedata" using (timecolumn(1)):(($2)*($3))

on the other hand,
plot 'timedata" using 1:(($2)*($3))
should also work.


Javier Galan wrote:
> 
> Hi,
> 
> I have found out that when creating a plot with time format in the x-axis,
> using comands
> 
> set timefmt "%s"
> set xdata time
> 
> there is a difference in the use of the column specifier.
> 
> There is no problem by using the reduced form.
> 
> plot "timedata" u 1:2
> 
> works perfectly,
> 
> however when using as
> 
> plot 'timedata" using ($1):($2)
> 
> the time data is not properly interpreted.
> 
> This is a problem when somebody wants to create this kind of plot by
> producing a mathematical operation in the y-axis,
> 
> as it could be ...
> 
> plot 'timedata" using ($1):(($2)*($3))
> 
> cheers,
>   Javier
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> gnuplot-bugs mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gnuplot-bugs
> 
> 

-- 
View this message in context: http://old.nabble.com/-Gnuplot-bugs--differences-between-u-1%3A2-and-using-%28%241%29%3A%28%242%29-tp30034676p30042457.html
Sent from the Gnuplot - Bugs mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
gnuplot-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnuplot-bugs