On Sun, Aug 19, 2012 at 3:41 PM, Peter Combs wrote:
> It seems like draw()ing the text object will reset the size of the BBox...
> Any idea how to fix this? At the moment, I'm experimenting with continually
> drawing, polling the get_width() method, and when it's too small, adding in
> spaces arou
2012/8/19 Peter Combs :
> Hi all,
> I'm trying to have a Text object with a fancy box, as in this example:
> http://matplotlib.sourceforge.net/mpl_examples/pylab_examples/fancybox_demo2.py
> . However, the key difference is that I want to have the box (in my case,
> I'm interested in an RArrow) be
Another, very hacky but quick way to do this, is to put spaces around your
text until the arrow is the size you desire:
" your text "
and if you want the arrow to expand upward and downward, put in return
characters (I told you it was crude ;))
On Sun, Aug 19, 2012 at 2:41 AM,
I had to deal with this lately, and there is no current way to do what you
want without patching the MPL source. I have a patch for it, but it does
not behave well enough to use in the general senseand you have target
the correct code, the lack of flexibility lies in the Text._draw_bbox
functi
Hi all,
I'm trying to have a Text object with a fancy box, as in this example:
http://matplotlib.sourceforge.net/mpl_examples/pylab_examples/fancybox_demo2.py.
However, the key difference is that I want to have the box (in my
case,
I'm interested in an RArrow) be a specified width (in units of the