From: Bryan <belred@gm...>  20060512 14:45:10

Hi all, I am working on a UI design, and I just found out about matplotlib. I would like to learn if some of the following graphs are possible using matplotlib with wxPython (to see if anyone has done something similar). Here is a mockup with some graphs we'd like to have. http://www.geocities.com/belred1/image1.jpg Does anyone know if matplotlib has rich charting functionality with gradients and shading that could provide the same experience as the performance charts on the right. How difficult would this be to implement? Thanks, Bryan 
From: Bryan <belred@gm...>  20060513 00:13:33

Hi all, I am working on a UI design, and I just found out about matplotlib. I would like to learn if some of the following graphs are possible using matplotlib with wxPython (to see if anyone has done something similar). Here is a mockup with some graphs we'd like to have. http://www.geocities.com/belred1/image1.jpg Does anyone know if matplotlib has rich charting functionality with gradients and shading that could provide the same experience as the performance charts on the right. How difficult would this be to implement? Also, do you know if there are any commercial or popular open source projects that are using matplotlib that i can look at? Thanks, Bryan 
From: Christopher Barker <Chris.B<arker@no...>  20060516 16:58:54

Bryan wrote: > Hi all, I am working on a UI design, and I just found out about > matplotlib. I would like to learn if some of the following graphs are > possible using matplotlib with wxPython If you want to use MPL with wxPython like that, be sure to check out wxmpl. > http://www.geocities.com/belred1/image1.jpg > > Does anyone know if matplotlib has rich charting functionality with > gradients and shading that could provide the same experience as the > performance charts on the right. I don't think it has the nifty shading. Other than that, it can do it all. > How difficult would this be to implement? That I don't know. The Agg renderer certainly can do a nice job with gradients, but I don't know if MPL support that. Chris  Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 5266959 voice 7600 Sand Point Way NE (206) 5266329 fax Seattle, WA 98115 (206) 5266317 main reception Chris.Barker@... 
From: John Hunter <jdhunter@ac...>  20060516 20:07:01

>>>>> "Christopher" == Christopher Barker <Chris.Barker@...> writes: Christopher> That I don't know. The Agg renderer certainly can do Christopher> a nice job with gradients, but I don't know if MPL Christopher> support that. You can emulate gradients using matplotlib images  either with colormaps or defining your own rgba endpoints for the gradients. Here's an example of an axes background gradient from pylab import figure, show, nx, cm fig = figure() xmin, xmax = xlim = 0,2 ymin, ymax = ylim = 1,1 ax = fig.add_subplot(111, xlim=xlim, ylim=ylim, autoscale_on=False) X = [[.6, .6],[.7,.7]] ax.imshow(X, interpolation='bicubic', cmap=cm.Blues, extent=(xmin, xmax, ymin, ymax), alpha=1) t = nx.arange(xmin, xmax,0.01) ax.plot(t, nx.sin(2*nx.pi*t), lw=2, color='black') show() Likewise, you can make your own gradient bars charts: from pylab import figure, show, nx, cm def gbar(ax, x, y, width=0.5, bottom=0): X = [[.6, .6],[.7,.7]] for left,top in zip(x, y): right = left+width ax.imshow(X, interpolation='bicubic', cmap=cm.Blues, extent=(left, right, bottom, top), alpha=1) fig = figure() xmin, xmax = xlim = 0,10 ymin, ymax = ylim = 0,1 ax = fig.add_subplot(111, xlim=xlim, ylim=ylim, autoscale_on=False) X = [[.6, .6],[.7,.7]] ax.imshow(X, interpolation='bicubic', cmap=cm.copper, extent=(xmin, xmax, ymin, ymax), alpha=1) N = 10 x = nx.arange(N)+0.25 y = nx.mlab.rand(N) gbar(ax, x, y, width=0.7) ax.set_aspect('normal') show() Viewer discretion is advised. If you want to get clever, you can define patterns and fills this way too. We should add an interface to expose this functionality more readily... JDH 