Hi
I'm trying to shade a couple of areas of a plot I'm creating, I need
to shade the area above one line and the area below another.
According to the documentation it looks like I need to use the fill()
method but I can't get it to work, the code I use for creating the
plot is below:
# import
On 7/14/07, Adam Mercer [EMAIL PROTECTED] wrote:
I'm trying to shade a couple of areas of a plot I'm creating, I need
to shade the area above one line and the area below another.
According to the documentation it looks like I need to use the fill()
method but I can't get it to work, the code
On 14/07/07, John Hunter [EMAIL PROTECTED] wrote:
On 7/14/07, Adam Mercer [EMAIL PROTECTED] wrote:
I'm trying to shade a couple of areas of a plot I'm creating, I need
to shade the area above one line and the area below another.
According to the documentation it looks like I need to use
On 7/14/07, Adam Mercer [EMAIL PROTECTED] wrote:
I found these examples whilst trying to get the fill() method to work
but couldn't get anything working. I added the line
axes.fill(mass, minimum_mass(options, mass), facecolor='red', alpha=0.5)
which, if I'm following the example
On 14/07/07, John Hunter [EMAIL PROTECTED] wrote:
OK, you'll probably need to give us a complete, free standing example
for us to debug this.
I've attached the complete code
./params.py --min-mass 4 --max-mass 100 --output test.png
Cheers
Adam
params.py
Description: Binary data
On 7/14/07, Adam Mercer [EMAIL PROTECTED] wrote:
I've attached the complete code
./params.py --min-mass 4 --max-mass 100 --output test.png
OK, the problem with this code is fill expects the vertices of the
polygon you want filled and you are only providing the top part, not
the bottom. The
On 14/07/07, John Hunter [EMAIL PROTECTED] wrote:
OK, the problem with this code is fill expects the vertices of the
polygon you want filled and you are only providing the top part, not
the bottom. The modified version of your code fills between your line
and the bottom of zero
Thanks John,