Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2734

Re: Basic Plotting

From Colin Brough <Colin.Brough@blueyonder.co.uk>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Basic Plotting
References <0239f0fb-e7e3-4de7-bcae-1eaea800e753@googlegroups.com>
Message-ID <6Cbzw.525684$Ud7.168222@fx11.am4> (permalink)
Organization virginmedia.com
Date 2015-01-31 21:15 +0000

Show all headers | View raw


On 31/01/15 20:01, anthonyfromtheuk@gmail.com wrote:
> Is it possible to generate a graph from a txt file that looks like this?
>
> 22.6 Sat Jan 31 19:38:18 2015
> 22.8 Sat Jan 31 19:40:05 2015
> 22.8 Sat Jan 31 19:40:11 2015
> 22.8 Sat Jan 31 19:40:16 2015
> 22.7 Sat Jan 31 19:49:00 2015
> 23.2 Sat Jan 31 19:59:09 2015
>
> the first number being a temperature reading.
> Having trouble figuring out how to get this work.

Does this do what you want?

	set timefmt "%b %d %H:%M:%S %Y"
	set xdata time
	plot "file.dat" using 3:1

Cheers

Colin

-- 

----------------------------------------------------------------------
Colin Brough                           Colin.Brough@blueyonder.invalid
                                 (Replace .invalid with .co.uk to reply)

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Basic Plotting anthonyfromtheuk@gmail.com - 2015-01-31 12:01 -0800
  Re: Basic Plotting Colin Brough <Colin.Brough@blueyonder.co.uk> - 2015-01-31 21:15 +0000
    Re: Basic Plotting Anthony fromtheuk <anthonyfromtheuk@gmail.com> - 2015-01-31 13:21 -0800

csiph-web