Re: [Matplotlib-users] Rectangle Bug

2012-09-07 Thread Eric Firing
On 2012/09/06 9:03 PM, Phil Elson wrote: > This seems to a be common misconception... > > I guess in future, we could add a check to the add_patch method to see > if the given artist already has an associated Axes, and if it does, emit > a warning. It's not just patches; but I think a single warni

Re: [Matplotlib-users] Rectangle Bug

2012-09-07 Thread Phil Elson
This seems to a be common misconception... I guess in future, we could add a check to the add_patch method to see if the given artist already has an associated Axes, and if it does, emit a warning. On 7 September 2012 07:42, Eric Firing wrote: > On 2012/09/06 8:35 PM, jonasr wrote: > > That s

Re: [Matplotlib-users] Rectangle Bug

2012-09-06 Thread Eric Firing
On 2012/09/06 8:35 PM, jonasr wrote: > That seems to work, thank you. > > I would have thought that the add_patch function creates two seperate > objects independent of the defined Rectangle. add_patch doesn't create any objects; it just attaches the axes to the patch in both directions: a refere

Re: [Matplotlib-users] Rectangle Bug

2012-09-06 Thread jonasr
That seems to work, thank you. I would have thought that the add_patch function creates two seperate objects independent of the defined Rectangle. greets jonas -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Rectangle-Bug-tp38825p38828.html Sent from the matplotlib -

Re: [Matplotlib-users] Rectangle Bug

2012-09-06 Thread Benjamin Root
On Thursday, September 6, 2012, jonasr wrote: > Hello, > > i spotted a bug in the Rectangle function when plotting with multiple > subplot, here is a source code example: > > #!/usr/bin/env python > # -*- coding: utf-8 -*- > > from matplotlib.pyplot import * > from numpy import * > import sys, os