|
From: Ethan A M. <sf...@us...> - 2012-04-24 21:48:09
|
> One more thing while you're around, I have xdata as timedata and the > mouse annotation feature is outputting a rather lengthy x coord. > > Sat 01, Jan 2000 16:03:47 GMT > > My graph runs 0:00 to 22:00 so the data part is spurious any way. > a) Is there a way to set this format > b) this is a bug since the date is spurious. > I'll start by saying that I know almost nothing about date handling in various javascript interpreters. Gnuplot is just putting out raw seconds; the conversion from "epoch seconds" to Time/Date is done by the javascript engine. So if yours is producing the wrong date I have no clue where to set about fixing it. Anyhow, the supported options are limited to requesting it to print only the Date, only the Time, or both (default), using set mouse mouseformat "Date" set mouse mouseformat "Time" set mouse mouseformat "DateTime" If you consistently want some other format, I'm afraid you're on your own to modify the javascript code in gnuplot_svg.js. In general it would be great if there were a way to translate the coordinate output formats (dates or otherwise) from gnuplot's own C-like format to something usable in javascript so that the svg and canvas terminals could use it. But I failed to find any such C -> javascript conversion library that could be linked to for this purpose. Ethan > from the console this system displays the following format (and knows > what day it is ;) ) > #date > Tue Apr 24 21:24:04 UTC 2012 > > regards. > |