[Matplotlib-users] use of enthought Python for matplotlib/numpy
I noticed on your Web Lab website that you suggest to download the Enthouhht edition. Although I suggest that to my students for class as well, we are currently running into some problems as the latest Enthought edition still includes an old numpy (version less than 1.0). Some important changes were made just before the 1.0 release, so please be aware of that. Now that we are on the topic, does anybody have good enough connections with Enthought to convince them to update the distribution? I can toss-in a box of donuts if that would help, Mark - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem with saving eps and ps with GTKAgg backend (and current head of SVN)
On Wednesday 09 May 2007 12:19:24 pm Johann Cohen-Tanugi wrote: I am creating a big drawing ( figure(figsize=(16,20)) ), and when I try to save it in eps/ps form, it mishandle the overall size and only save a portion of the drawing. Saving in png or jpg works fine though. Any idea? On my system, you cant create a figure that is larger than the monitor size, unless I use a non-gui backend like agg or ps. It doesnt matter whether I save an eps, png, or jpg. Also, make sure your postscript viewer is not truncating the page due to an inappropriate page size setting. Darren - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] use of enthought Python for matplotlib/numpy
Hi, I noticed on your Web Lab website that you suggest to download the Enthouhht edition. Although I suggest that to my students for class as well, we are currently running into some problems as the latest Enthought edition still includes an old numpy (version less than 1.0). Some important changes were made just before the 1.0 release, so please be aware of that. Now that we are on the topic, does anybody have good enough connections with Enthought to convince them to update the distribution? I can toss-in a box of donuts if that would help, I believe they are working on it, but they're shifting their approach to easily install the individual packages of the distribution individually/together/whatever by using eggs. It's good for the long term, but I guess unfortunate for people looking for the newest/ easiest install in the interim. Still, though, I think I've heard people still having some success by just installing the latest enthought edition. After that, you can pull down numpy/scipy/matplotlib from svn and install each over the old version in enthought. Lastly, Stef Mientki has apparently whipped up a Portable SciPy that is meant to be a one-click installer on windows if doing the above is unsatisfactory. Here's his announcement from the SciPy mailing list. Portable SciPy, is an easy installer of SciPy for M$ windows users. For this moment, you can find the description page, with all links here http://oase.uci.kun.nl/~mientki/data_www/pic/jalcc/python/ portable_scipy.html For future use, it's advised to always use my redirector page http://pic.flappie.nl/ The simple method described here, can be used to create any set of Python packages + other programs, with just a few lines of code (example available). have fun, and let me hear what you think of it. Lastly, I can't really vouch for any of these things since I don't use Windows, hopefully they work easily enough. -steve - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] DLL not found when importing pylab on Windows
Hi, A colleague of mine uses Python on Windows. When he upgraded to matplotlib 0.90 (from 0.82, I think) he started getting an import error when importing pylab. We tried many combinations and the only thing that fixed it was downgrading back to 0.82. We tried: python2.4 and python2.5 numpy 1.0.1 and 1.0.2 matplotlib 0.90 and 0.87.7 We got the same error with all of those combinations. The error message was an ImportError: DLL load failed, when doing from matplotlib._ns_transforms import *. It is the same problem that others reported earlier: http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/ msg02841.html All of our installs were from the .exe Windows binaries, not source compilations, and in all cases import numpy, numpy.test(1), and import matplotlib produced no errors. Note that we have not installed either Numeric or numarray, but we tried adding Numeric and it didn't help. Has anyone found a solution? We'd like to upgrade to a matplotlib later that 0.87.5 to get matplotlib.patches.Ellipse(). Thanks, -- Paul - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] DLL not found when importing pylab on Windows
Hi Paul, Paul Ray wrote: Hi, A colleague of mine uses Python on Windows. When he upgraded to matplotlib 0.90 (from 0.82, I think) he started getting an import error when importing pylab. We tried many combinations and the only thing that fixed it was downgrading back to 0.82. We tried: python2.4 and python2.5 numpy 1.0.1 and 1.0.2 matplotlib 0.90 and 0.87.7 What backend are you using? If you use wxPython then as of 0.87.? something you need to either use wxPython 2.6 Unicode or rename the following file: matplot\backends\_wxagg.pyd to matplot\backends\_wxagg DO NOT USE.pyd (or something similar). The 0.87 version was compiled against wxPython 2.6 to take accelarate some functions, by renaming the above file you basically deactive this accelaration code. I believe the next version of matplotlib will get rid of this dependency. Werner - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] subplot, spy, title
On 5/10/07, Nils Wagner [EMAIL PROTECTED] wrote: Hi all, How can I increase the distance between the title and the spy plot ? I have used figure(1) subplot(121) spy(M_bc) title(r'$M_{red}$') subplot(122) title(r'$K_{red}$') spy(K_bc) You can set the y attribute of the title, either with title('my title', y=1.05) or t = title('my title') t.set_y(1.05) JDH - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] DLL not found when importing pylab on Windows
On May 10, 2007, at 10:34 AM, Werner F. Bruhin wrote: What backend are you using? If you use wxPython then as of 0.87.? something you need to either use wxPython 2.6 Unicode or rename the following file: I'm not 100% sure. We certainly didn't intentionally use wxPython, since I don't even know what it is. The only packages we installed were python, numpy, and matplotlib. I think his backend is TkAgg, but I can't check since it was on my colleagues computer and he is on travel today. (All the rest of us us python/numpy/matplotlib on Macs or Linux and everything is fine with 0.90) I know there are a bunch of .pyd files in his matplotlib directory. Are those Windows DLL versions of packages? As far as I could tell the relevant one _ns_transforms.pyd is there, so I'm not sure why it is having trouble finding it (though I'm working from memory here). Cheers, -- Paul - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] DLL not found when importing pylab on Windows
Hi Paul, Paul Ray wrote: On May 10, 2007, at 10:34 AM, Werner F. Bruhin wrote: What backend are you using? If you use wxPython then as of 0.87.? something you need to either use wxPython 2.6 Unicode or rename the following file: I'm not 100% sure. We certainly didn't intentionally use wxPython, since I don't even know what it is. It is a Python wrapping of wxWidgets, much nicer then Tk in my view. The only packages we installed were python, numpy, and matplotlib. I think his backend is TkAgg, but I can't check since it was on my colleagues computer and he is on travel today. (All the rest of us us python/numpy/matplotlib on Macs or Linux and everything is fine with 0.90) If you or he uses TkAgg then I have no idea what might cause the problem. Should you have a small matplotlib script which shows the problem I'll give it a try on my setup (XP or Vista with Python 2.5 and numpy. I know there are a bunch of .pyd files in his matplotlib directory. Are those Windows DLL versions of packages? As far as I could tell the relevant one _ns_transforms.pyd is there, so I'm not sure why it is having trouble finding it (though I'm working from memory here). Someone more technical has to explain that, but I believe you right in saying that the .pyd files are a kind of a DLL on Windows. Werner - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] DLL not found when importing pylab on Windows
On May 10, 2007, at 11:05 AM, Werner F. Bruhin wrote: Should you have a small matplotlib script which shows the problem I'll give it a try on my setup (XP or Vista with Python 2.5 and numpy. No need for a script. import pylab produces the error. If you are using Windows XP, Python 2.5, numpy 1.0.2, and matplotlib 0.90, then you have the same setup that is causing us the error. What other packages do you have installed. My guess is that there is some dependency we are not satisfying? Thanks for your help, -- Paul - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Reusing basemap instance
I reuse a Basemap instance to reduce processing time. What I do is basically: 1. Remember all items I added to the map 2. Remove all items I don't want to keep I use a list for every category of items (contoursets, clabels, texts, ...), as the way to remove them is slightly different. Then I remove them from the map axes: for contourset in contoursets_to_remove: for coll in contourset.collections: if coll in map_axes.collections: map_axes.collections.remove(coll) for label in clabels_to_remove: if label in map_axes.artists: map_axes.artists.remove(label) for txt in texts_to_remove: if txt in map_axes.texts: map_axes.texts.remove(txt) Works well for me, but I would not be suprised if there's an more matplotlib-like method... While writing these lines, I start to wonder if it wouldn't be more elegant to remember the items you want to keep (coastlines,...), then do map_axes.cla() an then add your items to the map axes again?! For my application, this seems to be the better way, as I'm deleting more elements than reusing elements. Shouldn't be too hard to rewrite my code, maybe I can tell you if it works in a few days. Cheers Simon Jesper Larsen schrieb: On Tuesday 08 May 2007 20:55, Jeff Whitaker wrote: Jesper: You might consider just deleting the figure elements that you don't want to re-use (instead of figuring out everything you do want to re-use). I have an axes instance on which I have plotted my map decorations (coastlines, meridians and so on). I would like to reuse that axes. On the same axes* I would like to make filled contour plot and potentially a quiver plot. These should be discarded after saving the plot to a file. I know I have to discard part of the collection variable in the axes instance. But it seems like other things are changed as well. Is it safe to ignore these and simply do something like this: nsave = len(ax.collections) ...do and save plot... ax.collections = ax.collections[0:nsave] or would you recommend doing something else? Regards, Jesper *) I have tried to make an extra axes for the contour plot itself but it seems like matplotlib does not create an extra axes when it is the same size as an existing axes. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] DLL not found when importing pylab on Windows
Paul, Paul Ray wrote: On May 10, 2007, at 11:05 AM, Werner F. Bruhin wrote: Should you have a small matplotlib script which shows the problem I'll give it a try on my setup (XP or Vista with Python 2.5 and numpy. No need for a script. import pylab produces the error. No problem here with this. Just tried the example \matplotlib\examples\animation_blit_tk.py and that runs fine too (except it does not shut down nicely if has not done it's 1000 iterations:)). If you are using Windows XP, Python 2.5, numpy 1.0.2, and matplotlib 0.90, then you have the same setup that is causing us the error. What other packages do you have installed. My guess is that there is some dependency we are not satisfying? This was on Vista, Python 2.5, matplotlib 0.90, numpy 1.0.1. (can't try this config on XP, still have 0.82 installed on there at the moment) If you look at _transforms.py _ns_transforms is imported for numpy. So, maybe your version of numpy is too far ahead? Thanks for your help, You are welcome. Werner - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem with saving eps and ps with GTKAgg backend (and current head of SVN)
Well, matplotlib starts with a canvas bigger than my screen (vertically only) but in the end it seems to resize it so everything fits in. I can see the whole drawing and the bottom toolbar. Again, saving in png or jpg works perfectly and of course I checked that gv was not cutting the graph when displaying it. I just tried to use GTK as a backend, and ipython tells me that there are non implemented errors on my script I attach it here. thanks! Johann Darren Dale wrote: On Wednesday 09 May 2007 12:19:24 pm Johann Cohen-Tanugi wrote: I am creating a big drawing ( figure(figsize=(16,20)) ), and when I try to save it in eps/ps form, it mishandle the overall size and only save a portion of the drawing. Saving in png or jpg works fine though. Any idea? On my system, you cant create a figure that is larger than the monitor size, unless I use a non-gui backend like agg or ps. It doesnt matter whether I save an eps, png, or jpg. Also, make sure your postscript viewer is not truncating the page due to an inappropriate page size setting. Darren import numarray from pylab import * rc('text', usetex=True) m=0. #CASE 1 figure(figsize=(16,20)) subplot(311) #title('CASE 1') tRsh = 1.15 gstar2 = 2 tRemax = 1.05 tRe = numarray.arange(0.0,tRemax+0.04,0.005,numarray.Float32) x = tRe y = sqrt(tRe*( gstar2*((tRsh - tRe)**2 - (1-tRe)**2) + (tRsh-tRe)*(tRsh**(m+1) - tRe**(m+1))/(m+1) )) y[numarray.isnan(y)]=0.0 print x[-1],y[-1] plot([-0.0,1.2],[0,0],b,hold=False) plot(x,y,b,linewidth=3) plot(x,-y,b,linewidth=3) text(1.,-0.05,r'$R_t$',size=26) text(0.25,0.3,r'$R_e$',size=26) text(0.6,0.37,r'$r$',size=26) plot([0,x[50]],[0,y[50]],r,hold=True) plot([x[50],1],[y[50],0],r,hold=True) an=linspace(0,pi/12,10) plot(1+0.3*cos(pi-an),0.4*gstar2*sin(an),g) text(0.67,0.01,r'$\theta_r$',size=26) an=linspace(0,pi/6,10) plot(0.15*cos(an),0.3*gstar2*sin(an),g) text(0.17,0.01,r'$\theta_e$',size=26) s=linspace(-arcsin(0.099/0.75),arcsin(0.12/0.75),10) plot(tRsh*cos(s),4*sin(s),g--) #s=linspace(-arcsin(0.2),arcsin(0.3),10) #plot(tRsh*cos(s), gstar2*tRsh*sin(s),g--) text(1.05,0.3,r'$R_{sh}(t_t)$',size=26) text(1.05,-0.70,'CASE 1',size=26) #CASE 2 #figure(figsize=(16,8)) subplot(312) Remax=1. tRe = numarray.arange(0.0,Remax+0.001,0.001,numarray.Float32) plot([-0.0,1.2],[0,0],b,hold=False) Re_gammaTheta = sqrt(tRe*(1- tRe)/(m+1)*(1.-tRe**(m+1))) plot(tRe,Re_gammaTheta,b,linewidth=3,hold=True) plot(tRe,-Re_gammaTheta,b,linewidth=3,hold=True) plot([0,tRe[600]],[0,Re_gammaTheta[600]],r,hold=True) plot([tRe[600],1],[Re_gammaTheta[600],0],r,hold=True) #xlabel(r'$R_e$',fontsize=24) #text(-0.15,0, r'$R_e\gamma_t\theta_e$',fontsize=24) text(-0.15,0, r'$x_e/\gamma_t/R_t$',fontsize=24) text(-0.15,-0.15, r'$\approx \gamma_t{\tilde{R}}_e\theta_e$',fontsize=24) #text(-0.15,-0.15, r'$\approx \gamma_t{R}_e\theta_e$',fontsize=24) text(1.02,-0.15,r'$R_t=R_{sh}(t_t)$',size=26) text(0.37,0.2,r'$R_e$',size=26) text(0.74,0.1,r'$r$',size=26) an=linspace(0,pi/7,10) plot(0.24*cos(an),0.24*sin(an),g) text(0.25,0.01,r'$\theta_e$',size=26) an=linspace(0,pi/5,10) plot(1+0.15*cos(pi-an),0.15*sin(an),g) text(0.82,0.01,r'$\theta_r$',size=26) #plot the shell at tt s=linspace(-arcsin(0.15/0.75),arcsin(0.15/0.75),10) plot(1.*cos(s),1.7*sin(s),g--) #s=linspace(-arcsin(0.38),arcsin(0.38),10) #plot(1.*cos(s),1.*sin(s),g--) text(1.05,-0.35,'CASE 2', size=26) #CASE 3 #figure(figsize=(16,8)) subplot(313) Remax=0.70 tRe = numarray.arange(0.0,Remax+0.001,0.001,numarray.Float32) Re_gammaTheta = sqrt(tRe*(1- tRe)/(m+1)*(Remax**(m+1)-tRe**(m+1))) plot(tRe,Re_gammaTheta,b,linewidth=3,hold=False) plot(tRe,-Re_gammaTheta,b,linewidth=3,hold=True) plot([0.0,1.2],[0,0],hold=True) plot([0,tRe[100]],[0,Re_gammaTheta[100]],r,hold=True) plot([tRe[100],1],[Re_gammaTheta[100],0],r,hold=True) text(1.,-0.1,r'$R_t$',size=26) text(0.04,0.21,r'$R_e$',size=26) text(0.5,0.15,r'$r$',size=26) #xlabel(r'$R_e$',fontsize=24) xlabel(r'$z_e/R_t \approx{\tilde{R}}_e$',fontsize=24) #xlabel(r'$z_e/R_t \approx{R}_e$',fontsize=24) #text(-0.15,0, r'$R_e\gamma_t\theta_e$',fontsize=24) an=linspace(0,pi/3.7,10) plot(0.08*cos(an),0.16*sin(an),g) text(0.07,0.065,r'$\theta_e$',size=26) an=linspace(0,pi/13,10) plot(1+0.4*cos(pi-an),0.4*sin(an),g) text(0.55,0.005,r'$\theta_r$',size=26) #plot the shell at tt s=linspace(-arcsin(0.11/0.75),arcsin(0.11/0.75),10) plot(0.95*cos(s),2*sin(s),g--) text(0.85,-0.15,r'$R_{sh}(t_t)$',size=26) #theta_r,max #plot([0,tRe[460]],[0,Re_gammaTheta[460]],y) #plot([tRe[460],1],[Re_gammaTheta[460],0],y) plot([0.4,1],[Re_gammaTheta[360],0],y) an=linspace(0,pi/7.2,10) plot(1+0.2*cos(pi-an),0.2*sin(an),y) text(0.8,0.11,r'$\theta_{r,max}$',size=26) text(1.05,-0.25,'CASE 3',size=26) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
Re: [Matplotlib-users] plotting wind-speed time series
Good news. When the next production version will be released? Le Jeudi 10 Mai 2007 15:47, John Hunter a écrit : I recently added legend support for polar to matplotlib svn. JDH - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Lionel Roubeyrie - [EMAIL PROTECTED] Chagé d'études et de maintenance LIMAIR - la Surveillance de l'Air en Limousin http://www.limair.asso.fr - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] xpdf distiller: page doesn't fit graph
I want to make some good vector graphs to include in LaTeX. I use backend : PS ps.papersize : auto ps.usedistiller : xpdf My problem is that when i export the graphs [savefig('test')] the exported graph is in the middle of a large page, which isn't suitable for inclusion in LaTeX. How can I make the page the same size as the graph? Please help me. Matplotlib makes the nicest graphs i know -- don't make me use Matlab. Best Regards T. -- Troels Kofoed Jacobsen [EMAIL PROTECTED] tel: +45 20880798 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] xpdf distiller: page doesn't fit graph
On Thu, 10 May 2007, Troels Kofoed Jacobsen apparently wrote: My problem is that when i export the graphs [savefig('test')] savefig('test.eps') always works fine for me... Cheers, Alan Isaac - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] xpdf distiller: page doesn't fit graph
On Thursday 10 May 2007 02:39:51 pm Troels Kofoed Jacobsen wrote: I want to make some good vector graphs to include in LaTeX. I use backend : PS ps.papersize : auto ps.usedistiller : xpdf My problem is that when i export the graphs [savefig('test')] the exported graph is in the middle of a large page, which isn't suitable for inclusion in LaTeX. ps.papersize: auto picks the smallest standard papersize that will accommodate your figure. How can I make the page the same size as the graph? Try saving an eps file instead. Please help me. Matplotlib makes the nicest graphs i know -- don't make me use Matlab. ... - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] numpy version of Interactive Data Analysis tutorial available
I have updated the Using Python for Interactive Data Analysis tutorial to use numpy instead of numarray (finally!). There are further improvements I would like to make in its organization and formatting (in the process including suggestions others have made to that end), but I'd rather get this version out, which I believe addresses all the content changes needed to make it useful for numpy, without delaying it any further. The tutorial, as well as other supporting material and information, can be obtained from: http://www.scipy.org/wikis/topical_software/Tutorial I'm sure errors remain; please let me know of any you find. Perry - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] problem with saving eps and ps with GTKAgg backend (and current head of SVN)
I was having the same problem, but the recent xpdf thread pointed me to a/the solution. I was able to successfully run your script by outputting as eps instead of ps (which produced truncated output, as you were experiencing). Matt On Thu, 10 May 2007, Johann Cohen-Tanugi wrote: Well, matplotlib starts with a canvas bigger than my screen (vertically only) but in the end it seems to resize it so everything fits in. I can see the whole drawing and the bottom toolbar. Again, saving in png or jpg works perfectly and of course I checked that gv was not cutting the graph when displaying it. I just tried to use GTK as a backend, and ipython tells me that there are non implemented errors on my script I attach it here. thanks! Johann Darren Dale wrote: On Wednesday 09 May 2007 12:19:24 pm Johann Cohen-Tanugi wrote: I am creating a big drawing ( figure(figsize=(16,20)) ), and when I try to save it in eps/ps form, it mishandle the overall size and only save a portion of the drawing. Saving in png or jpg works fine though. Any idea? On my system, you cant create a figure that is larger than the monitor size, unless I use a non-gui backend like agg or ps. It doesnt matter whether I save an eps, png, or jpg. Also, make sure your postscript viewer is not truncating the page due to an inappropriate page size setting. Darren - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] SVG vs PNG
On Thu, 10 May 2007 15:51:09 -0700 (PDT) [EMAIL PROTECTED] apparently wrote: png (works but each plot needs to be magified manually before saving) Use the figsize argument. Cheers, Alan Isaac - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] SVG vs PNG
[EMAIL PROTECTED] wrote: Hi, list: In my quest to create MPL plots for insertion into Word documents, I tried post-script (doesn't work well - Word doesn't like the ps file created by MPL), pdf (can't create more then 8 plots per job and can not import into word), png (works but each plot needs to be magified manually before saving), and now I am playing around with the svg format. Word doesn't recognize the svg format but I can open the file in gimp, select the portion of the chart I need, and do cut-and-paste over to Word. I can do the same with png format too but svg format works better if I have to do cut and paste and scale. When you open the svg in gimp, it is being rendered as pixels; from that point on, it is the same as if you had made a png at the same resolution, except that there are subtle differences in positioning and probably antialiasing between externally rendered svg and mpl/agg-produced png. Did you try eps rather than ps? Eric My question is this: While the svg files are much smaller then the cooresponding png file (yes, and scalable), I am surprised that the quality of the plot doesn't seem to be that much better (seem like about the same as compared to a corresponding png figure). I would have thought that they should (see for example: http://luxor-xul.sourceforge.net/talk/jug-nov-2002/slides.html#svg-1). Is this because MPL is not taking advantage of the capabilities offered by svg? I know that not every one works with Word but for good or for bad, that's what I have to work with in oder to submit my paper for publishing. Surely many of you have come across this kind of chanllenge. What have you been doing for inserting MPL created charts into Word? Thanks, -- John Henry - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users