|
From: Stephen D. <sc...@sd...> - 2009-12-11 00:02:50
|
Perfect! Thank you very much. Stephen On Friday 11 December 2009 05:16:08 Thomas Sefzick wrote: > "%s" is not implemented - but it should be implemented. > > i uploaded a patch to sourceforge which repairs this. > > scldad wrote: > > Thank you Thomas. > > > > This looks very promising. > > > > The initial plot image is good. > > > > However, when I do the replot with a table set, the X coordinates > > (date/time) > > do not seem to follow the rules in the doco. > > > > I did: > > > > set table "/tmp/pdata" > > set xdata time > > set timefmt "%Y-%m-%d_%H:%M:%S" > > set format x "%s" > > plot "/tmp/data" using 1:2 with lines > > unset table > > > > /tmp/pdata contains lines of the format: > > > > "" 5.489 i > > > > If I omit the set format x, I get lines of the format: > > > > "g" 5.489 i > > > > How do I get the date/time x values output as seconds? > > (GPVAL_X_MIN value implies that these are the units plotted.) > > > > Cheers and thanks, > > Stephen > > > > On Wednesday 09 December 2009 19:04:55 Thomas Sefzick wrote: > >> after plotting a whole bunch of variables is set, see 'show variables > >> all'. > >> amongst these variables there are > >> GPVAL_TERM_XMIN, GPVAL_TERM_XMAX, > >> GPVAL_TERM_YMIN, GPVAL_TERM_YMAX > >> which give the corners of the graph in pixels. > >> (you need version 4.4) > >> > >> together with the information in > >> GPVAL_X_MIN, GPVAL_X_MAX, ... > >> it should be easy to translate data point coordinates into > >> pixels. > >> > >> you should generate your plot, then replot with 'set table <filename>' > >> the resulting file should contain all of your data points in graph > >> coordinates which with the above variables you may convert into > >> terminal screen coordinates. > >> > >> scldad wrote: > >> > I have seen this question before but not any answers. > >> > > >> > I need to generate plots of data where the X axis is always date/time. > >> > > >> > These plot image files will be included in web pages via img tags. > >> > > >> > I also need to make the resulting web image "clickable" via an image > >> > >> map > >> > >> > so > >> > that viewers can see the original data values. > >> > > >> > How can one generate the relevant HTML image maps (or some form of > >> > text file > >> > with identifiable coordinate pairs) with gnuplot? > >> > > >> > (I currently do this with grace plots by replicating the PNG plots > >> > with the > >> > Metadata output option and feeding the results plus the original data > >> > file through a gawk script.) > >> > > >> > TIA, > >> > Stephen Davies > >> > -- > >> > >> ======================================================================== > >>= > >> > >> >==== Stephen Davies Consulting P/L Voice: > >> > 08-8177 1595 > >> > Adelaide, South Australia. Fax : > >> > >> 08-8177 > >> > >> > 0133 > >> > Computing & Network solutions. Mobile:040 > >> > >> 304 > >> > >> > 0583 > >> > > >> > VoIP:sip:11...@si... > >> > >> ------------------------------------------------------------------------ > >>- > >> > >> >----- Join us December 9, 2009 for the Red Hat Virtual Experience, > >> > a free event focused on virtualization and cloud computing. > >> > Attend in-depth sessions from your desk. Your couch. Anywhere. > >> > http://p.sf.net/sfu/redhat-sfdev2dev > >> > _______________________________________________ > >> > gnuplot-info mailing list > >> > gnu...@li... > >> > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > -- > > ========================================================================= > >==== Stephen Davies Consulting P/L Voice: > > 08-8177 1595 > > Adelaide, South Australia. Fax : 08-8177 > > 0133 > > Computing & Network solutions. Mobile:040 304 > > 0583 > > > > ------------------------------------------------------------------------- > >----- Return on Information: > > Google Enterprise Search pays you back > > Get the facts. > > http://p.sf.net/sfu/google-dev2dev > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info -- ============================================================================= Stephen Davies Consulting P/L Voice: 08-8177 1595 Adelaide, South Australia. Fax : 08-8177 0133 Computing & Network solutions. Mobile:040 304 0583 |