tools/plot-values/plot.py
branchdev
changeset 244 66235db8d8b7
parent 13896030f8d2f2c
       1 --- a/tools/plot-values/plot.py	Thu Jul 09 02:42:47 2009 -0700
       2 +++ b/tools/plot-values/plot.py	Mon Jul 25 23:21:29 2011 -0700
       3 @@ -27,18 +27,17 @@
       4      values = [(v-m) % 1. for v in values]
       5      print "V:", min(values), max(values)
       6  
       7 -    aspect = (max(yy) - min(yy))/(max(xx) - min(xx)) + .1
       8 -    # aspect = .5
       9 -
      10      # hsv()
      11 -    # fig = figure(figsize = (3,3*aspect))
      12 +    fig = figure()
      13 +    scatter(xx,yy,s=10,c=values)
      14 +    colorbar()
      15 +    
      16      # ax = fig.add_axes([-.05,-.1,1.1,1.1])
      17      ax = axes()
      18      ax.set_axis_off()
      19      ax.set_aspect('equal', 'box')
      20 -    ax.scatter(xx,yy,s=10,c=values)
      21      # adjust(0,0,1,1,0,0)
      22 -    colorbar()
      23 +
      24      fig.savefig(output_fn)
      25  
      26  if __name__ == '__main__':