home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / graphics / gnuplot / 334 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.7 KB  |  38 lines

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