Exemplo n.º 1
0
Arquivo: raw.py Projeto: dicai/ratio
def get_ellipseinfo(raw_out, viz_out):
    
    w = open(viz_out, 'w')
    x = tb.tabarray(SVfile=raw_out)
    a = _normalize_array(x)

    for i in range(0, 4):
        for j in range(i + 1, 5):
            (xy, width, height, angle) = ellipse.get_ellipse(a[:,i], a[:,j])
            w.write(str(xy) + ',' + str(width) + ',' + str(height) + \
                    ',' + str(angle) + '\t'),
Exemplo n.º 2
0
Arquivo: raw.py Projeto: dicai/ratio
def plot_ellipse(x, y, ax, color):
	(xy, width, height, angle) = ellipse.get_ellipse(x, y)
	e = Ellipse(xy, width, height, angle)
	ax.add_artist(e)
	e.set_alpha(0.2)
	e.set_facecolor(color)