/[pdpsoft]/nl.nikhef.ndpf.groupviews/trunk/ndpf-gv-mkplots
ViewVC logotype

Diff of /nl.nikhef.ndpf.groupviews/trunk/ndpf-gv-mkplots

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2374 by templon, Sun Jul 24 11:13:02 2011 UTC revision 2375 by templon, Sun Jul 24 11:32:13 2011 UTC
# Line 66  topgroups_day=day_groups_sorted[-NUMGROU Line 66  topgroups_day=day_groups_sorted[-NUMGROU
66    
67  ### block generating plots ###  ### block generating plots ###
68    
69    commonargs = ['--imgformat', 'PNG' ]
70    sizeargs = { 'small' : [ '--width', '285', '--height', '125' ],
71                     'large' : [ '--width', '950', '--height', '500' ]
72                     }
73  def doplot(grouplist, dbtype, psize, timetag):  def doplot(grouplist, dbtype, psize, timetag):
74            
     sizeargs = { 'small' : [ '--imgformat', 'PNG', '--width', '285', '--height', '125' ],  
                  'large' : [ '--imgformat', 'PNG', '--width', '950', '--height', '500' ]  
                  }  
   
   
75      defs = list()      defs = list()
76      plots = list()      plots = list()
77    
# Line 94  def doplot(grouplist, dbtype, psize, tim Line 93  def doplot(grouplist, dbtype, psize, tim
93      plot_defs.append('LINE:total#000000:total')      plot_defs.append('LINE:total#000000:total')
94    
95      pargs = [ PLOTDIR + dbtype + '-' + timetag + '-' + psize + '.png'] + \      pargs = [ PLOTDIR + dbtype + '-' + timetag + '-' + psize + '.png'] + \
96              sizeargs[psize] + timeargs[timetag] + data_defs + plot_defs              commonargs + sizeargs[psize] + timeargs[timetag] + \
97                data_defs + plot_defs
98      rrdtool.graph( *pargs )      rrdtool.graph( *pargs )
99    
100  def doplot_wait(grouplist, dbtype, psize, timetag):  def doplot_wait(grouplist, dbtype, psize, timetag):
101            
     sizeargs = { 'small' : [ '--imgformat', 'PNG', '--width', '285', '--height', '125' ],  
                  'large' : [ '--imgformat', 'PNG', '--width', '950', '--height', '500' ]  
                  }  
   
102      defs = list()      defs = list()
103      plots = list()      plots = list()
104    
# Line 123  def doplot_wait(grouplist, dbtype, psize Line 119  def doplot_wait(grouplist, dbtype, psize
119    
120      pargs = [ PLOTDIR + dbtype + '-' + timetag + '-' + psize + '.png'] + \      pargs = [ PLOTDIR + dbtype + '-' + timetag + '-' + psize + '.png'] + \
121              ['--slope-mode', '-o'] + \              ['--slope-mode', '-o'] + \
122              sizeargs[psize] + timeargs[timetag] + data_defs + plot_defs              commonargs + sizeargs[psize] + timeargs[timetag] + \
123                data_defs + plot_defs
124      rrdtool.graph( *pargs )      rrdtool.graph( *pargs )
125    
126  for dbtype in ['queued', 'running', 'waittime']:  for dbtype in ['queued', 'running', 'waittime']:

Legend:
Removed from v.2374  
changed lines
  Added in v.2375

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28