Re: [Matplotlib-users] Duplicate Ticks

2012-06-14 Thread Eric Firing
On 06/14/2012 02:39 PM, Peter Würtz wrote: > > > > Benjamin Root-2 wrote: >> >> On Wed, Jun 13, 2012 at 10:46 AM, Peter Würtz >> wrote: >> >>> import matplotlib >>> import pylab as p >>> >>> p.plot([1,2,3]) >>> p.xticks([1],["tick"]) >>> ax = p.gca() >>> fig = p.gcf() >>> >>> p.draw() >>> def print

Re: [Matplotlib-users] Duplicate Ticks

2012-06-14 Thread Peter Würtz
Benjamin Root-2 wrote: > > On Wed, Jun 13, 2012 at 10:46 AM, Peter Würtz > wrote: > >> import matplotlib >> import pylab as p >> >> p.plot([1,2,3]) >> p.xticks([1],["tick"]) >> ax = p.gca() >> fig = p.gcf() >> >> p.draw() >> def print_texts(artist): >>for t in artist.findobj(matplotlib.tex

[Matplotlib-users] Duplicate Ticks

2012-06-14 Thread Peter Würtz
Hello, I'm searching for a way to extract all text elements from a matplotlib figure including their positions, styles, alignments etc. I first tried to write a custom backend and to fetch all the texts from the "draw_text()" method of the renderer. In contrast to the documentation "draw_text()" d

Re: [Matplotlib-users] Duplicate Ticks

2012-06-13 Thread Benjamin Root
On Wed, Jun 13, 2012 at 10:46 AM, Peter Würtz wrote: > > I'm sorry, there seems to be a mess. Nabble told me that this mail to the > list was not accepted for unknown reasons so I deleted it. Here is the > example I was talking about in the previous mail: > > import matplotlib > import pylab as p

Re: [Matplotlib-users] Duplicate Ticks

2012-06-13 Thread Peter Würtz
I'm sorry, there seems to be a mess. Nabble told me that this mail to the list was not accepted for unknown reasons so I deleted it. Here is the example I was talking about in the previous mail: import matplotlib import pylab as p p.plot([1,2,3]) p.xticks([1],["tick"]) ax = p.gca() fig = p.gcf()

[Matplotlib-users] Duplicate Ticks

2012-06-13 Thread Peter Würtz
Hello, I'm searching for a way to extract all text elements from a matplotlib figure including their positions, styles, alignments etc. I first tried to write a custom backend and to fetch all the texts from the "draw_text()" method of the renderer. In contrast to the documentation "draw_text()"