Example #1
0
	arc_ratio = 0.7
	h_ratio = 0.9
	reduce = 0.95
	precision = 720
	
	for k in sys.argv:
		if k.find('z=') != -1:
			z = float(k.split('=')[1])
		if k.find('radi=') != -1:
			radi = float(k.split('=')[1])
		if k.find('arc_ratio=') != -1:
			arc_ratio = float(k.split('=')[1])
		if k.find('h_ratio=') != -1:
			h_ratio = float(k.split('=')[1])
		if k.find('reduce=') != -1:
			reduce = float(k.split('=')[1])
		if k.find('precision=') != -1:
			precision = float(k.split('=')[1])
		if k.find('out') != -1:
			OUTPUT_TO_FILE = 1
			SHOW_GRAPH = 0
		if k.find('show') != -1:
			SHOW_GRAPH = 1
		
			
	gear1 = TypeGear(z, radi, arc_ratio, h_ratio, reduce, precision)
	rgraph.extend(paint_gear((0,0), 0, gear1))
	if SHOW_GRAPH:
		fg.display(rgraph)
	
Example #2
0
def testGraph():
	theGraph = fg.genBigGraph()
	fg.display(theGraph)
Example #3
0
		tup = tup1	
	return tg

dline = tdx2.get_dayline_by_fid();
zoom = 1

tg = []

tg.extend(AutoCreateLine(dline, lambda x:x))

tg.append(['foreColor',0x0000ff])

k = dline[0]
initTup = (k.ftime * zoom, k.op * zoom)

animal = mice6208(initTup, (0.8, 0.01))
tg.extend(AutoCreateLine(dline, animal.run))

tg.append(['foreColor',0x00ffff])

animal = mice6208(initTup, (0.01, 0.8))
tg.extend(AutoCreateLine(dline, animal.run))

tg.append(['foreColor',0x800000])

#animal = cow6208(initTup, (30,)); tg.extend(AutoCreateLine(dline, animal.run))

animal = cow6208(initTup, (5,)) ; tg.extend(AutoCreateLine(dline, animal.run))

freegraph.display(tg)