home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics.gnuplot
- Path: sparky!uunet!destroyer!cs.ubc.ca!news.UVic.CA!sirius!Mark.McIntosh
- From: Mark.McIntosh@engr.UVic.CA (Mark McIntosh)
- Subject: Re: Date format conversion ?
- In-Reply-To: ratner@news.ans.net's message of Tue, 10 Nov 1992 02:04:11 GMT
- Message-ID: <MARK.MCINTOSH.92Nov9210142@sombrio.UVic.CA>
- Lines: 24
- Sender: news@sol.UVic.CA
- Nntp-Posting-Host: sombrio.uvic.ca
- Organization: University of Victoria, Victoria, BC, Canada
- References: <1992Nov10.020411.6892@ans.net>
- Date: 10 Nov 92 05:01:41 GMT
-
- On Tue, 10 Nov 1992 02:04:11 GMT, ratner@news.ans.net (Michael Ratner) said:
- >I have a sequence of the following pairs: [<date> <value>], where
- ><date> is expressed as the number of seconds elapsed since the
- >beginning of UNIX era (Jan 1 00:00 1970). Dates are not continuous,
- >meaning that there's a gap between consecutive values of <date>.
- >How do I get normal-looking dates on the plot as range markings for
- >the "date" axis ? Something like "Oct 1 10:15:34" instead of 74938183
-
- I use the "xtics" command to set up explicit labels at the appropriate
- integer time mark. eg. for a plot where the x column indicates hours
- from midnight Saturday:
-
- set noautoscale x
- set tics out
- set xtics ("Sun" 12, "Mon" 36, "Tue" 60, "Wed" 84, "Thu" 108, "Fri" 132, "Sat" 156)
- set xrange [0:167]
- set xlabel "Day of the week (ticks are noon that day)"
-
- Mark J. McIntosh <Mark.McIntosh@engr.UVic.CA>
- ____________________________________________________________________________
- University of Victoria, Faculty of Engineering - Dean's Office
- Box 3055, Victoria, BC, CANADA \ "...the mystery of life isn't a problem to
- V8W 3P6 (604) 721-6049 \ solve but a reality to experience."
- UUCP: ...!{uw-beaver,ubc-vision}!uvicctr!sirius!mmcintos \ from Dune
-