From: twentypoundtrout <twe...@ya...> - 2008-12-01 20:43:13
|
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. |