Skip to content

Instantly share code, notes, and snippets.

@sakti
Created May 16, 2012 02:21
Show Gist options
  • Save sakti/2706787 to your computer and use it in GitHub Desktop.
Save sakti/2706787 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from pylab import linspace, polar, pi, title, show
data = open("/home/diean/haha/cobacoba.txt","r").readlines()
data = filter(lambda x: x.strip() != '', data)
data = map(lambda x: float(x), data)
theta = linspace(0, pi * 2, num=len(data))
polar(theta, data)
title('Plotting Data Antena Wajanbolic')
show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment