Re: [Matplotlib-users] text against colorbar
> "Lionel" == Lionel Roubeyrie <[EMAIL PROTECTED]> writes: Lionel> Arg, I hoped that you would not say that :-) Le Mardi 19 It's not too bad, actually: from pylab import figure, show, nx, cm from matplotlib.transforms import blend_xy_sep_transform fig = figure() ax = fig.add_subplot(111) X = 100*nx.mlab.randn(256,256) im = ax.imshow(X, cmap=cm.jet) cax = fig.colorbar(im) labels = (100., 'peak1'), (-100, 'peak2') trans = blend_xy_sep_transform(cax.transAxes, cax.transData) for y, label in labels: cax.text(-0.05, y, label, ha='right', va='center', transform=trans) show() - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] text against colorbar
Arg, I hoped that you would not say that :-) Le Mardi 19 Décembre 2006 16:39, Jeff Whitaker a écrit : > Lionel Roubeyrie wrote: > > Hi all, > > I don't find any doc on this point, then I post my question here: is it > > possible to set texts with a colorbar, like a legend? > > You can have a look of what I want here: > > http://www.limair.asso.fr/previsions2/index.php (just click "OK") > > thanks > > Lionel: I don't think there is any automatic way to do this, but you > can do it manually with pylab.text > (http://matplotlib.sourceforge.net/matplotlib.pylab.html#-text). > > -Jeff -- Lionel Roubeyrie - [EMAIL PROTECTED] LIMAIR http://www.limair.asso.fr - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] [problems with closing figure, memory problem ?]
Sorry for the previsou post. Tweaking a bit I found that probably the problem is not in the visualisation but in cleaning memory. I use a function to make four plot calling two subfunction. the plot are called plotrisp and plotlev in everyone of them any tome i use a figure I also close it. But if I only use one fuction it do the plot. WhenI try to use them to plot no way it stuck in the end. So I had the same problem while calling multiple plots with multiple function Any help would be appreciated and sorry for the dup post nstep=30 Giorgio from numpy import * import pylab as p import matplotlib.axes3d as p3 # plots leverage plot (3d surface+ contour) def pyplotrisp (b,nstep,gr,lab): h=lab.size risp2=empty((h,1)) ir=1 for j in arange(1,nstep+2): #a=gr[[arange(ir-1,ir+nstep)],:] b2=gr[arange(ir-1,ir+nstep)] #flev=dot(a2,dot(disper,a2.transpose())) crisp=dot(b2,b) risp2=hstack((risp2,crisp)) print ir print crisp print risp2 ir=ir+nstep+1 [M,L]=risp2.shape risp=risp2[:,arange(1,L)] print risp p.figure ic=p.contour(risp) p.clabel(ic) p.axis('scaled') p.close H,K = meshgrid(lab,lab) fig2=p.figure() ax2=p3.Axes3D(fig2) ax2.plot_wireframe(H,K,risp) p.close p.show() return risp 9.785400e-001 -1.005400e-002 -4.158800e-003 -2.830800e-002 -1.009200e-002 -2.493500e-003 2.509200e-003 3.7500029400e-003 8.7500047700e-003 -7.478900e-003 -7.520500e-003 1.2500126000e-003 -1.2499765200e-003 -2.4999627500e-003 1.2500403600e-003 3.343100e-001 0.00e+000 0.00e+000 0.00e+000 0.00e+000 0.00e+000 0.00e+000 0.00e+000 0.00e+000 0.00e+000 0.00e+000 -8.362000e-002 -8.362000e-002 -8.362000e-002 -8.362000e-002 8.063693575130939100e-018 4.167100e-002 -7.466696441424020800e-018 5.442898171701501700e-018 7.446831533558328100e-019 -3.981296423947523400e-033 -1.360311859369367600e-033 -2.812828735141543300e-034 2.259947026447235500e-034 4.390808650062400600e-034 2.734628002940427000e-034 -2.510159939866114900e-020 2.428167867294735600e-018 -5.737360769959190400e-018 -5.737360769959193500e-018 7.598154529375859700e-034 2.750670794648198700e-018 4.165700e-002 3.252606517456512100e-018 -6.938893903907227600e-018 1.881266115781307300e-017 3.00173760674520e-018 5.357418870882074000e-018 3.920093381513243500e-018 -1.596487216230838300e-018 -1.471631841958520700e-018 -2.529653004892762600e-018 1.914546345013781500e-018 -3.639574377949061200e-018 4.25468103782804e-018 1.916232971842715000e-033 7.209827103475922500e-018 -4.119968255444918400e-018 4.164400e-002 1.561251128379126400e-017 -4.703165289453265200e-018 -7.504344016863050200e-019 -1.339354717720509800e-018 -9.800233453782993300e-019 3.991218040577071800e-019 3.679079604896299400e-019 1.723793026891109400e-018 3.943329065986273500e-018 -4.599879633360827600e-018 -1.067242459516556400e-018 4.890066054477537100e-034 3.394879081475125300e-018 -8.673617379884024700e-018 -6.938893903907231500e-018 4.163700e-002 -1.811248849411297100e-017 -1.232649058115857300e-017 1.260633175768506600e-017 9.526091405915190700e-018 -3.432681590033676600e-018 -5.421953771683235600e-018 -4.263287963462097500e-018 1.350262687099568600e-018 1.104875764931516900e-018 1.808149511431011000e-018 2.536890719600698900e-033 4.063726437323978200e-033 -2.699487135751760500e-018 6.748717839379484200e-019 -2.010183206209276600e-017 6.248600e-002 -2.602085213965210600e-017 2.602085213965210600e-018 -4.336808689942017700e-019 3.903127820947816000e-018 1.734723475976807100e-018 -2.232219446375430500e-018 2.232219446375430500e-018 5.985072623326622900e-018 -5.985072623326622900e-018 2.032214496590675000e-034 1.708373769186458100e-033 -3.999004283483412900e-018 9.997510708708580400e-019 -9.467257814775494300e-018 -3.903127820947816000e-018 6.25e-002 3.469446951953614200e-018 -3.469446951953614200e-018 -1.561251128379126400e-017 -3.469446951953614200e-018 -8.643269201659448900e-018 8.643269201659450400e-018 1.550313073537109300e-018 -1.550313073537111600e-018 8.648904567117544200e-034 -1.478880281038128200e-033 2.724989909059686100e-018 -6.812474772649243300e-019 8.162894818485949200e-018 -1.561251128379126400e-017 1.387778780781445700e-017 6.249300e-002 1.040834085586084300e-017 1.040834085586084300e-017 8.673617379884035500e-018 -5.23347419861849e-018 5.233474198618489200e-018 7.275153256153026200e-019 -7.275153256153018500e-019 1.781786392369606100e-033 4.846674875901112200e-034 6.992820730148195700e-018 -1.74820518253705350
Re: [Matplotlib-users] text against colorbar
Lionel Roubeyrie wrote: > Hi all, > I don't find any doc on this point, then I post my question here: is it > possible to set texts with a colorbar, like a legend? > You can have a look of what I want here: > http://www.limair.asso.fr/previsions2/index.php (just click "OK") > thanks > > Lionel: I don't think there is any automatic way to do this, but you can do it manually with pylab.text (http://matplotlib.sourceforge.net/matplotlib.pylab.html#-text). -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX: (303)497-6449 NOAA/OAR/PSD R/PSD1Email : [EMAIL PROTECTED] 325 BroadwayOffice : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web: http://tinyurl.com/5telg - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] text against colorbar
Hi all, I don't find any doc on this point, then I post my question here: is it possible to set texts with a colorbar, like a legend? You can have a look of what I want here: http://www.limair.asso.fr/previsions2/index.php (just click "OK") thanks -- Lionel Roubeyrie - [EMAIL PROTECTED] LIMAIR http://www.limair.asso.fr - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] [Crash with matplotlib and 14415 points help please :) ]
I've retried reloading the matrices after restaring everything twice and it seems to plot. Probably the problem is that the memory is "occupied" from previous plots. I noticed also that the possibility to command come back to the console only after the last plot is close manually ..any hints Is there a way to "clean" the memory for a new start.. the command close doesn't seem to work ? Here's the module that make the only previous plot before trying to do the meshcountour #!/usr/bin/env python from numpy import * from pylab import * from scipy import stats from scipy.stats import t #from __future__ import division # Function regress computes several parameters typical of regression #(dispersion matrix, inflation factors, leverage, coefficients, ...) #def pyregf(x,y,el): x=array([[ 1., -1., -1., -1., -1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., -1., -1., -1., 1., 1., 1., -1., 1., -1., -1., 1., 1., 1., 1.], [ 1., -1., 1., -1., -1., -1., 1., 1., -1., -1., 1., 1., 1., 1., 1.], [ 1., -1., 1., -1., 1., -1., 1., -1., -1., 1., -1., 1., 1., 1., 1.], [ 1., -1., -1., 1., -1., 1., -1., 1., -1., 1., -1., 1., 1., 1., 1.], [ 1., -1., 1., 1., 1., -1., -1., -1., 1., 1., 1., 1., 1., 1., 1.], [ 1., -1., 1., 1., -1., -1., -1., 1., 1., -1., -1., 1., 1., 1., 1.], [ 1., -1., -1., 1., 1., 1., -1., -1., -1., -1., 1., 1., 1., 1., 1.], [ 1., 1., -1., -1., -1., -1., -1., -1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 1., -1., -1., 1., -1., -1., 1., 1., -1., -1., 1., 1., 1., 1.], [ 1., 1., 1., -1., -1., 1., -1., -1., -1., -1., 1., 1., 1., 1., 1.], [ 1., 1., 1., -1., 1., 1., -1., 1., -1., 1., -1., 1., 1., 1., 1.], [ 1., 1., -1., 1., -1., -1., 1., -1., -1., 1., -1., 1., 1., 1., 1.], [ 1., 1., -1., 1., 1., -1., 1., 1., -1., -1., 1., 1., 1., 1., 1.], [ 1., 1., 1., 1., -1., 1., 1., -1., 1., -1., -1., 1., 1., 1., 1.], [ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], [ 1., 0., 0., 0., -2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4.], [ 1., 0., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4.], [ 1., 0., -2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0.], [ 1., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0.], [ 1., 0., 0., -2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0.], [ 1., 0., 0., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0.], [ 1., -2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0.], [ 1., 2., 0., 0., 0., 0., 0., 0., 0., 0., 0., 4., 0., 0., 0.], [ 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], [ 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], [ 1., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]]) y=array([[1.02],[1.05],[1.03],[0.99],[0.97],[0.95],[1],[0.93],[1],[1],[0.98],[0.98],[0.94],[0.94],[0.96],[0.92],[1.01],[0.96],[0.99],[0.96],[1.03],[0.91],[0.99],[0.98],[1],[0.98],[0.96]]) el=2 xt=x.transpose() infi=dot(xt,x) # information matrix3 disper=linalg.pinv(infi) print 'Dispersion matrix:' print disper # dispersion matrix tr=trace(disper) print ' ' print 'Trace of the dispersion matrix:' print tr # trace of dispersion matrix #checked [r,c]=x.shape # r is the number of rows of matrix x; c is the number of columns xcc=x-[ones((r,1),float)*mean(x, axis=0)] # matrix x after column centering # (subtraction between matrix x and a matrix contaning in each row # the averages of the columns) h=xcc**2 htsum=h.sum(axis=1) htran=htsum.transpose() ddisper=diag(disper) infl=htsum*ddisper print ' ' print 'Inflation factors:' print infl # computing inflation factors: f = row sum of squares in matrix # xcc * diagonal element of disper print ' ' print 'Leverage of the experimental points:' xtransp=x.transpose() xdisper=dot(x,disper) lev=diag(dot(xdisper,xtransp)) print lev # computing leverage for the experimental points print ' ' print 'Maximum leverage:' print lev.max() if el==2: b=dot(dot(disper,xtransp),y) print ' ' dof=r-c; print 'Degrees of freedom:' print dof print ' ' print 'Coefficients:' print b.transpose() # b = vector of coefficients pred=dot(x,b) #pred=vector of fitted (predicted) responses wi=((y-pred)**2) wisum=wi.sum(axis=0) varres=wisum/(r-c) rmsef=sqrt(varres) print ' ' varcoeff=varres*diag(disper) sdcoeff=sqrt(varcoeff) print 'Std., dev of the coefficients:' print sdcoeff print ' ' print 'Significance of the coefficients:' ti=abs(b/sdcoeff) sigN=(1-t.cdf(ti,dof
Re: [Matplotlib-users] Some remarks/questions about perceived slowness of matplotlib
> "David" == David Cournapeau <[EMAIL PROTECTED]> writes: David> In make_image, most of the time is taken into to_rgba: David> almost half of it is taken in by the take call in the David> Colormap.__call__. Almost 200 ms to get colors from the David> indexes seems quite a lot (this means 280 cycles / pixel on David> average !). I can reproduce this number by using a small David> numpy test. David> On my laptop (pentium M, 1.2 Ghz), make_image takes almost David> 85 % of the time, which seems to imply that this is where David> one should focus if one wants to improve the speed, This may have been lost in the longer thread above, but what interpolation are you using? You may see a good performance boost by using interpolation='nearest'. Also, with your clip changes and with Eric's changes is it still painfully slow for you -- how much have these changes helped? Of time time spent in make image, how much is _image.fromarray, ScalarMappable.to_rgba and _image.resize? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] memory leak in matplotlib wxApp?
> "Olivier" == Olivier ATTEIA <[EMAIL PROTECTED]> writes: Olivier> Hello, sorry to bother you but I did not find a reply Olivier> elsewhere, I am using matplotlib with python 2.4 and Olivier> windows XP and it is a really nice tool. It is inside a Olivier> wxapplication. I have a problem because the user can Olivier> change the graph settings as he wants and draws several Olivier> times contours from 50 by 200 matrices. After some time Olivier> the program slows down and the memory is increasing Olivier> regularly. I don't understand because I use a command Olivier> similar as in matplotlib clear command : collections=[] Olivier> between each drawing. I tried in a simpler way : just Olivier> start matplotlib(even in tk mode), make a plot(x,y) with Olivier> x=randn(100,100). First it takes a lot of memory (more Olivier> than 50 Mb). And when you clear hte figure the meory Olivier> remains high, or when you set holds(False) and make a Olivier> simple plot the first plot disappears but the memory is Olivier> still high. Do you have any idea Thanks a lot Sincerely Olivier> O. Atteia Hey Olivier, questions should go to the matplotlib-users mailing list. I'm forwarding this on. You can subscribe at http://sourceforge.net/mailarchive/forum.php?forum_id=33405 JDH - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] [Crash with matplotlib and 14415 points help please :) ]
Hello to all, I'm finishing to convert a module for linear regression that I used in Matlab. It takes an experimental matrix, and a response matrix perform a regression and a bit of plot and then give me 3 matrices that I need to plot response surface and leverage surface. For plotting leverage and response I need to create a kind of grid of point with another program. and at this point everything work fine (checked also in comparison with matlab). The problems come when I tri to plot it. For a step of 2 (not really a grid) it works with 30 steps everything crashes :( so nste=2 work nstep=30 not I attach the file that give no problems it's a module with included the matrix to be plotted with nstep=2 and also the problematic one. a function with the same name of the plot and the matrices that give the problems. Every help would be greatly appreciated because if I fix it I can get rid of the regression program in matlab that i generally use really a lot in my everyday job Giorgio test.tar.tar.bz2 Description: Binary data # plots leverage plot (3d surface+ contour) from numpy import * import pylab as p import matplotlib.axes3d as p3 #nstep 30 doesnt' work #nstep 2 ok def pyplotlev(disper,nstep,gr,lab): h=lab.size lev2=empty((1,h)) ir=1 for j in arange(1,nstep+2): #a=gr[[arange(ir-1,ir+nstep)],:] a2=gr[arange(ir-1,ir+nstep)] #flev=dot(a2,dot(disper,a2.transpose())) clev=diag(dot(a2,dot(disper,a2.transpose( lev2=vstack((lev2,clev)) #print ir #print clev #print h ir=ir+nstep+1 lev=lev2[1:,] #print lev fig=p.figure(1) H,K = meshgrid(lab,lab) ax=p3.Axes3D(fig) ax.plot_wireframe(H,K,lev) p.close fig2=p.figure(2) ic=p.contour(lev) p.clabel(ic) p.axis('scaled') p.close p.show() return lev # plots leverage plot (3d surface+ contour) #def plotlev(disper,nstep,gr,lab) #return lev from numpy import * import pylab as p import matplotlib.axes3d as p3 disper=array([[ 3.e-01, 0.e+00, 0.e+00, 0.e+00, 0.e+00, 0.e+00, 0.e+00, 0.e+00, 0.e+00, 0.e+00, 0.e+00, -8.e-02, -8.e-02, -8.e-02, -8.e-02], [ 8.06369358e-18, 4.1667e-02, -7.46669644e-18, 5.44289817e-18, 7.44683153e-19, -3.98129642e-33, -1.36031186e-33, -2.81282874e-34, 2.25994703e-34, 4.39080865e-34, 2.73462800e-34, -2.51015994e-20, 2.42816787e-18, -5.73736077e-18, -5.73736077e-18], [ 7.59815453e-34, 2.75067079e-18, 4.1667e-02, 3.25260652e-18, -6.93889390e-18, 1.88126612e-17, 3.00173761e-18, 5.35741887e-18, 3.92009338e-18, -1.59648722e-18, -1.47163184e-18, -2.52965300e-18, 1.91454635e-18, -3.63957438e-18, 4.25468104e-18], [ 1.91623297e-33, 7.20982710e-18, -4.11996826e-18, 4.1667e-02, 1.56125113e-17, -4.70316529e-18, -7.50434402e-19, -1.33935472e-18, -9.80023345e-19, 3.99121804e-19, 3.67907960e-19, 1.72379303e-18, 3.94332907e-18, -4.59987963e-18, -1.06724246e-18], [ 4.89006605e-34, 3.39487908e-18, -8.67361738e-18, -6.93889390e-18, 4.1667e-02, -1.81124885e-17, -1.23264906e-17, 1.26063318e-17, 9.52609141e-18, -3.43268159e-18, -5.42195377e-18, -4.26328796e-18, 1.35026269e-18, 1.10487576e-18, 1.80814951e-18], [ 2.53689072e-33, 4.06372644e-33, -2.69948714e-18, 6.74871784e-19, -2.01018321e-17, 6.2500e-02, -2.60208521e-17, 2.60208521e-18, -4.33680869e-19, 3.90312782e-18, 1.73472348e-18, -2.23221945e-18, 2.23221945e-18, 5.98507262e-18, -5.98507262e-18], [ 2.03221450e-34, 1.70837377e-33, -3.99900428e-18, 9.99751071e-19, -9.46725781e-18, -3.90312782e-18, 6.2500e-02, 3.46944695e-18, -3.46944695e-18, -1.56125113e-17, -3.46944695e-18, -8.64326920e-18, 8.64326920e-18, 1.55031307e-18, -1.55031307e-18], [ 8.64890457e-34, -1.47888028e-33, 2.72498991e-18, -6.81247477e-19, 8.16289482e-18, -1.56125113e-17, 1.38777878e-17, 6.2500e-02, 1.04083409e-17, 1.04083409e-17, 8.67361738e-18, -5.23347420e-18, 5.23347420e-18, 7.27515326e-19, -7.27515326e-19], [ 1.78178639e-33, 4.84667488e-34, 6.99282073e-18, -1.74820518e-18, 1.48015167e-17, -3.90312782e-18, 5.20417043e-18, -6.93889390e-18, 6.2500e-02, -1.90819582e-17, -2.68882139e-17, -3.08112113e-18, 3.08112113e-18, -3.02713500e-19, 3.02713500e-19], [ -1.16429297e-35, 4.79634801e-35, -2.17349863e-18, 5.43374657e-19, -3.83189970e-18, 1.73472348e-18, -4.33680869e-18, 5.20417043e-18, -1.21430643e-17, 6.2500e-02,
Re: [Matplotlib-users] Calling matplotlib from C++ ?
Christopher Barker wrote: > yardbird wrote: > >> On Saturday 16 December 2006 19:42, Xavier Gnata wrote: >> > > >>> Each time I'm working on C++ codes using vector or valarray, I would >>> like to be able to plot them. >>> > > >> you should really check out the Boost::Python libraries. They allow you, >> among >> other things, to expose your C++ container classes as python objects. I'm >> using them heavily in my project and I'm very satisfied. >> > > What this means is that you'd be using python to drive your C++ code, > rather than using C++ code to drive a python/mpl code. In addition to > Boost::Python, there are some other options to consider: > > pyrex, Cxx, SWIG. > > The other option is to use your C++ code to drive Python. This can be > done by embedding a python interpreter in your C++ app. See the > odfficial pyhton docs, and lots of other stuff online. > > You also might want to check out Elmer: > > http://elmer.sourceforge.net/ > > I've never used it, but it looks pretty cool. It's a tool that provides > the infrastructure for calling python from C/C++. > > Honestly, though, I'd go with the first approach -- drive your C++ code > from Python -- I think that in addition to making it easy to plot > results, etc, you'll be able to write unit tests, etc in python, and > even get a full scripting engine, which could turn out to be very useful.. > > -Chris > Hi, I do agree that driving C++ from python looks easier thant driving python from C++. However, I really would like to inclue python code into my C++ code and not the opposite (I have special needs so I really have to do that). I'm going to have a look at embedding python. Has anyone experience with that? Xavier -- Xavier Gnata CRAL - Observatoire de Lyon 9, avenue Charles André 69561 Saint Genis Laval cedex Phone: +33 4 78 86 85 28 Fax: +33 4 78 86 83 86 E-mail: [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] pcolor demo
Hi guys, I'm trying to run the pcolor demo on my own data. I have an image and I need to draw the hot colormap on it. Can you advise on how I can do it? Sorry I'm not from the computer field so please try to be clear. Thanks so much in advance, Regards, _ Think you're a film buff? Play the Movie Mogul quiz and win fantastic prizes! http://www.msnmoviemogul.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users