[Tioga-users] Is there some where some example with time as axis?

Vincent Fourmond fourmond at gmail.com
Wed Sep 12 14:43:33 EDT 2007


  Hello !

rubisher wrote:
> I manage some AIX boxes on which I can collect performance data with a tool named nmon which produce csv data files.
> 
> With ruby it's quiet easy to split this file in sub-data file related to different topics like CPU, DISK, Mem, ... and even 
> compute average, weighted average, ... to produce plots.
> 
> For the moment, I reach to produce some ps plots with ploticus but it didn't give me enough control on the results as could 
> do Tioga (as far as your kind tutorial let me foreseen) as producing a daily pdf book which I can make available for 
> management. Unfortunately I didn't find any example using time as axis. Don't you have some example of this kind or isn't it 
> yet intregrated in this project?

 If I understand you right, you want to make a plot where the X (or Y)
axis would be, say, a date like 11/04/06 11:40. That is possible
although currently a bit cumbersome with the way Tioga deals with tick
labels. You need to convert date/time data into floats and prepare
yourself tick labels (and tick position) with
yaxis_locations_for_major_ticks
and
yaxis_tick_labels (see the function special_y in samples/plots/plots.rb).

  However, we were recently discussing a more powerful way to make ticks
label that would make it nearly painless (next release).

  Hope you'll find Tioga suitable, cheers !

	Vincent


More information about the Tioga-users mailing list