Hi,  i'm wondering if there is an easy way to fill the background in a polar
graph with a specific color.  If I were making a pie graph, it'd be
something like: pie([70,20,10]), where the first 70% is green, the next 20,
yellow, and the last 10, red.  I've been experimenting with polar graphs
using some random data and i've gotten close to what I want, but it'd be
neat to have a color in the background.  Here's what I have now. it's a
polar scatter plot, much like what is found in the gallery, but with a few
changes.

from pylab import *
import numpy as np

snp=[]
for i in range(0,65):
    snp.append(np.random.randint(35,122))

tempTuple=array(snp)

r = tempTuple/10
theta = ((tempTuple*2.9508)*pi)/180
area = r**2*(tempTuple/5.4)
colors = theta
ax = subplot(111, polar=True)
c = scatter(theta, r, c=colors, s=area)
c.set_alpha(0.75)
show()
-- 
View this message in context: 
http://www.nabble.com/polar-graph-tp22230232p22230232.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to