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
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
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
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
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()
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()"