bug in matplotlib.text.Text

Hi all,

I found that a matplotlib.text.Text istance reports wrong coordinates when
converted to str
I'm using version 1.0.1

this is the code in Text class:

def __str__(self):
        return "Text(%g,%g,%s)"%(self._y,self._y,repr(self._text))

it is clearly reporting two times the y coordinates, and should be:

def __str__(self):
        return "Text(%g,%g,%s)"%(self._x,self._y,repr(self._text))

I'm sorry if this is not the correct plase to report the bug, but I've not
been able to find
a bugtracker for matplotlib.

Andrea

Andrea,

Thanks for reporting. I recently spotted this bug and fixed it in the master branch.

Ben Root

···

On Wed, Jul 27, 2011 at 10:07 AM, Andrea Pierleoni <andrea@…3691…9…> wrote:

Hi all,

I found that a matplotlib.text.Text istance reports wrong coordinates when

converted to str

I’m using version 1.0.1

this is the code in Text class:

def str(self):

    return "Text(%g,%g,%s)"%(self._y,self._y,repr(self._text))

it is clearly reporting two times the y coordinates, and should be:

def str(self):

    return "Text(%g,%g,%s)"%(self._x,self._y,repr(self._text))

I’m sorry if this is not the correct plase to report the bug, but I’ve not

been able to find

a bugtracker for matplotlib.

Andrea

Great.
Thank you. I will check the master branch before reporting next time.

Andrea

···

On Wed, Jul 27, 2011 at 10:07 AM, Andrea Pierleoni > <andrea@...3689...>wrote:

Hi all,

I found that a matplotlib.text.Text istance reports wrong coordinates
when
converted to str
I'm using version 1.0.1

this is the code in Text class:

def __str__(self):
       return "Text(%g,%g,%s)"%(self._y,self._y,repr(self._text))

it is clearly reporting two times the y coordinates, and should be:

def __str__(self):
       return "Text(%g,%g,%s)"%(self._x,self._y,repr(self._text))

I'm sorry if this is not the correct plase to report the bug, but I've
not
been able to find
a bugtracker for matplotlib.

Andrea

Andrea,

Thanks for reporting. I recently spotted this bug and fixed it in the
master branch.

Ben Root