Along similar lines, has anyone figured out a way to have a drop shadow effect for text on a plot?

twentypoundtrout <>

12/01/08 01:43 PM

Re: [Matplotlib-users] plot with drop shadow

John Hunter-4 wrote:
> On Mon, Dec 1, 2008 at 9:17 AM, Nate <> wrote:
>> Is there a way to plot lines with drop shadows?
> Nothing built-in -- but you can fake it::
>     import matplotlib.pyplot as plt
>     import numpy as np
>     t = np.arange(0.0, 2.0, 0.01)
>     s = np.sin(2*np.pi*t)
>     fig = plt.figure()
>     ax = fig.add_subplot(111)
>     ax.plot(t+0.01, s-0.01, color='gray', lw=2)
>     ax.plot(t, s, color='blue', lw=3)

So there is no way to say plot a line.  Grab that image.  Apply a standard
SVG filter (like Gaussian). And overlay the blur?  I do not know the PIL
well enough to know if this is feasible.
View this message in context:
Sent from the matplotlib - users mailing list archive at

This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
Matplotlib-users mailing list