From: Mike H. <mh...@us...> - 2008-12-01 21:12:16
|
Along similar lines, has anyone figured out a way to have a drop shadow effect for text on a plot? twentypoundtrout <twe...@ya...> 12/01/08 01:43 PM To mat...@li... cc Subject Re: [Matplotlib-users] plot with drop shadow John Hunter-4 wrote: > > On Mon, Dec 1, 2008 at 9:17 AM, Nate <ten...@ya...> 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) > plt.show() > > JDH > > 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: http://www.nabble.com/plot-with-drop-shadow-tp20773979p20780129.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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 http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matplotlib-users |