Re: [Matplotlib-users] text box shadow

2010-01-19 Thread Jae-Joon Lee
Using the patheffect in the svn, shadows can be easily supported in all the patch-like classes, including the patch of the texts. (For example, see the last example in patheffect_demo.py). So, it should be straight forward and I don't see any harm in doing that. However, I personally prefer to hav

Re: [Matplotlib-users] text box shadow

2010-01-19 Thread John Hunter
On Tue, Jan 19, 2010 at 4:34 PM, Jae-Joon Lee wrote: > This is generally a very difficult thing to do, as the position and > the extent of the text is determined when the figure is drawn. > > The best way, I guess, is to create a customized Text class, but I do > not recommend this unless you're f

Re: [Matplotlib-users] text box shadow

2010-01-19 Thread Jae-Joon Lee
This is generally a very difficult thing to do, as the position and the extent of the text is determined when the figure is drawn. The best way, I guess, is to create a customized Text class, but I do not recommend this unless you're familiar with matplotlib internals. If you're using svn version

[Matplotlib-users] text box shadow

2010-01-19 Thread Jens_M
I'm trying to make a shadow effect behind text boxes in a plot (similarly to what can be done with legends). After a fair bit of searching around I found the matplotlib.patches.Shadow class which seems to be good for this. But I cannot get it to work properly. I suspect it has something to do wit