[Matplotlib-users] fill function

2008-06-05 Thread Bryan Fodness
Is there a way to get the underlying array that the fill function uses to graph a polygon? This is assuming that it uses an array. I would like to be able to multiple an array by an array that describes the polygon (one if inside the polygon and zero if outside) -- The game of science can

Re: [Matplotlib-users] fill function

2008-06-05 Thread Michael Droettboom
I just read your question more closely -- that you want to multiply an array by an array that describes the polygon. Do you mean the array of vertices that describe the polygon or something like a 2D rasterization (image) of the polygon? I perhaps wrongfully assumed you just wanted to do

[Matplotlib-users] fill() function

2008-03-13 Thread Michael Hearne
I realize I was probably too wordy the first time I posted this: Does anyone know how to specify arbitrary colors to the fill() function? None of the following methods I tried seemed to work: ax.fill(array([0.25,0.75,0.75,0.25,0.25]),array ([0.75,0.75,0.25,0.25,0.75]),'#FF')