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 have shadow patches as a separate
artists, so that the zorder of the shadows can be respected. For
example, in the attached example, I want the shadow of "Text 1"  does
not block  the text "Test 2". But doing this is not straight forward
and the code of Text class need to be further modified. I'll take a
look later.

Regards,

-JJ


On Tue, Jan 19, 2010 at 9:47 PM, John Hunter <jdh2...@gmail.com> wrote:
> On Tue, Jan 19, 2010 at 4:34 PM, Jae-Joon Lee <lee.j.j...@gmail.com> 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 familiar with matplotlib internals.
>
> JJ -- what do you think about adding a "shadow" kwarg to the bbox
> props -- an extra kwarg much like "pad"?  Shouldn't be too hard to
> implement in the text class.  Or are there some dangerous curves I'm
> overlooking?
>
> JDH
>

<<attachment: shadow_test.png>>

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to