# -*- coding: utf-8 -*- #Copyright (c) 2009, Walter Bender # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. from constants import * import math # header print "" print "" print "" print " " print " " print " " print " CI" ln = str(float(SWIDTH - int((math.log(math.pi)*SCALE + OFFSET)*10 )/10.)) h1 = "38"; h2 = "59"; h3 = "35" print " " print " π" print " " ln = str(float(SWIDTH - int((math.log(math.e)*SCALE + OFFSET)*10 )/10.)) h1 = "38"; h2 = "59"; h3 = "35" print " " print " e" print " " for i in range(100,200): ln = str(float(SWIDTH - int((math.log(i/100.)*SCALE + OFFSET)*10 )/10.)) if int((i/10)*10) == i: h1 = "38"; h2 = "59"; h3 = "35" print " " print " " + str(float(int(i)*10/SCALE)) + "" elif int((i/5)*5) == i: h1 = "40"; h2 = "59"; else: h1 = "42"; h2 = "59"; print " " for i in range(200,500,2): ln = str(float(SWIDTH - int((math.log(i/100.)*SCALE + OFFSET)*10 )/10.)) if int((i/10)*10) == i: h1 = "38"; h2 = "59"; h3 = "35" if int((i/100)*100) == i: print " " print " " + str(float(int(i)*10/SCALE)) + "" else: h1 = "40"; h2 = "59"; print " " for i in range(500,1005,5): ln = str(float(SWIDTH - int((math.log(i/100.)*SCALE + OFFSET)*10 )/10.)) if int((i/10)*10) == i: h1 = "38"; h2 = "59"; h3 = "35" if int((i/100)*100) == i: print " " print " " + str(float(int(i)*10/SCALE)) + "" else: h1 = "40"; h2 = "59"; print " " # footer print " " print ""