Re: [Matplotlib-users] Numpy v1.1.0 not compatible with pylab in matplotlib 0.9.1
I've consistently been able to build matplotlib on OS X. Just make sure you have all the dependencies installed. Personally, I have lbpng and whatnot installed in /usr/local instead of /usr/X11. I don't know if that'll help. Also, I use the GCC 4.2 that Apple has available for download on developer.apple.com. Then you just change the Makefile in the /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/config/ directory to not use Wno-long-double or no-cpp-precomp. I also took out all the ppc arch flags since it was causing some issues there with my versions of libpng and whatnot technically not being universal binaries. If you don't want to build univeral binary versions of your dependencies or use the ones alread provided in /usr/X11 (which are universal I think), you should make Python only build for your architecture, which is what I did. My only issue with matplotlib thusfar seems to be the inability to do the plot3d examples from the scipy website, but I'm told that stuff is officially unsupported anyway. Josh On Wed, May 28, 2008 at 3:35 PM, Eric Firing [EMAIL PROTECTED] wrote: Christopher Barker wrote: Tommy Grav wrote: I don't know that it has ever all been consolidated into one easy-to- find, easy-to-use set of instructions that will work for just about anyone. no, it hasn't. And one of the reasons may be that it is very complicated in practice, with all the possible variations of OSX versions, Xcode versions, processor architectures, and styles of build for python itself and various libraries. It seems to require learning a whole new jargon. However, I think: $ easy-install matplotlib should work, at least with the python.org python2.5 Maybe someone can provide, or has provided, a universal binary of 0.91.2 built against numpy 1.1? does it need to be built against numpy at all? I didn't think it was a build-time dependency -- that is, any MPL 0.91.2 should do, and you can drop a new numpy into it. I don't know if there is one yet, though... _backend_gdk.c and nxutils.c both call into the numpy C API; maybe some c++ code does also. It is not entirely clear to me whether 1.1 is sufficiently binary-compatible that this is safe. There are essentially two options: 1) built it just for yourself -- I think the instructions John H. posted are pretty easy to follow. That's the way they look, but having watched someone try it, I can testify that looks are deceptive. I would say that with 95% probability, if Tommy tried to follow John's instructions, he would not succeed. Eric - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib x11 usage
On Thu, May 29, 2008 at 9:40 AM, cyclopsvs [EMAIL PROTECTED] wrote: Does anyone had some experience with using apache and matplot lib together, if so could you share the experiences you had installing everything. I'd like to know before i continue developing these features of the application. matplotlib renders to a number of different targets, eg user interfaces, PNG, or postscript. The user interfaces require an x11 connection, but the image generation backends do not. Thjese are the ones you will want to use with apache, django, etc. What you need to do is set your default backend to Agg in your matplotlibrc file. This file resides in site-packages/matplotlib/mpl-data and can be moved into either HOME/..matplotlib or your working directory (eg where your image generating code lives). Once this is done mpl will generate PNGs w/o an X11 connection. http://www.scipy.org/Cookbook/Matplotlib/Django has some information on using mpl with django, but it is bit out of date because you no longer need PIL to save to a file handle. mpl can now save PNG directly to a file handle - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Numpy v1.1.0 not compatible with pylab in matplotlib 0.9.1
Eric Firing wrote: _backend_gdk.c and nxutils.c both call into the numpy C API; maybe some c++ code does also. It is not entirely clear to me whether 1.1 is sufficiently binary-compatible that this is safe. The C API did not change (with the possible exception of additions). I'd be really surprised if this is an issue -- the numpy devs worked to make sure there would be no breakage at the C API level. (And even if it did change, as it might one day in the future -- numpy 2? -- there's a check that happens at numpy load time, during import_array(), that checks whether the version of numpy you compiled with is the version you're loading now and raises an exception if it's not. So, the old nightmares of numeric and numarray possibly being run against binary incompatible versions are a thing of the past. This check actually saved quite a few headaches during the runup to numpy 1.0, when there were a number of C API changes happening in quick succession as Travis worked to get it right. That machinery is still in there.) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] matplotlib x11 usage
cyclopsvs wrote: Hello matplotlib users, I just recently started using the matplot library for generating simple graphs instead of using R. The problem i'm experiencing are the following. On my work station i had to enable x11 forwarding to be able to run a script generating plots on a server . The problem now is that my own computer is a mac and normally when i use the x11 app to connect to a server x forwarding is suited to run all script that use a x11 window. If you don't need interactive plots, you might consider doing it the old-fashioned way: saving the plots as png files in batch mode and displaying with firefox. import matplotlib matplotlib.use('Agg') #non-interacive back-end import matplotlib.pyplot as plt plt.savefig('/home/me/public_html/plots/thefile.png',dpi=100) We've automated this so the python script makes the plots, builds an image gallery with thumbnails and then copies the plots off our cluster (which doesn't mount the web server directory) and onto the web server using rsync. For example http://clouds.eos.ubc.ca/~phil/savefigs/E/ -- Phil - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] How to change space between axis and labels?
Hello, i am having some trouble to make the pictures for my thesis look good. I could not figure out, how i can change the space between the axis and the tick-labels in my plots. Can anyone help me? - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] How to change space between axis and labels?
Torsten Hahn wrote: Hello, i am having some trouble to make the pictures for my thesis look good. I could not figure out, how i can change the space between the axis and the tick-labels in my plots. Can anyone help me? There is an rcParams setting for this. You can set it in the matplotlibrc file, or directly in the script. For example, from matplotlib import pyplot as plt plt.rc(('xtick.major', 'ytick.major'), pad=20) plt.plot([1,2,3]) plt.show() (If this fails because you don't have pyplot--you are using an older version of mpl--change the import line to import pylab as plt.) Eric - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] os x 10.5.3 numpy 1.10 error
Using apple python, numpy 1.10, I get the following error in matplotlib 0.91.2: Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type help, copyright, credits or license for more information. from pylab import * plot([1,2,3,4]) [matplotlib.lines.Line2D object at 0x2be5d70] show() Traceback (most recent call last): File /opt/lib/python2.5/site-packages/matplotlib/backends/ backend_wx.py, line 1021, in _onPaint self.draw(repaint=False) File /opt/lib/python2.5/site-packages/matplotlib/backends/ backend_wxagg.py, line 60, in draw FigureCanvasAgg.draw(self) File /opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py, line 254, in draw self.renderer = self.get_renderer() File /opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py, line 265, in get_renderer self.renderer = RendererAgg(w, h, self.figure.dpi) File /opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py, line 66, in __init__ self.draw_path_collection = self._renderer.draw_path_collection AttributeError: draw_path_collection Traceback (most recent call last): File stdin, line 1, in module File /opt/lib/python2.5/site-packages/matplotlib/backends/ backend_wx.py, line 1187, in show figwin.canvas.draw() File /opt/lib/python2.5/site-packages/matplotlib/backends/ backend_wxagg.py, line 60, in draw FigureCanvasAgg.draw(self) File /opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py, line 254, in draw self.renderer = self.get_renderer() File /opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py, line 265, in get_renderer self.renderer = RendererAgg(w, h, self.figure.dpi) File /opt/lib/python2.5/site-packages/matplotlib/backends/ backend_agg.py, line 66, in __init__ self.draw_path_collection = self._renderer.draw_path_collection AttributeError: draw_path_collection Terminated -gideon - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] os x 10.5.3 numpy 1.10 error
On Thu, 29 May 2008, Gideon Simpson apparently wrote: Using apple python, numpy 1.10, I get the following error in matplotlib 0.91.2: I do not see this. I have the same mpl and np version, and same Python version, but I'm on Windows. fwiw, Alan Isaac - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] os x 10.5.3 numpy 1.10 error
Never mind. I think this may have had to do with something else not being installed correctly. This config (numpy 1.10, apple python 2.5.1, mpl 0.91.2, /usr/X11 png and freetype) works fine though. On May 29, 2008, at 9:59 PM, Alan G Isaac wrote: On Thu, 29 May 2008, Gideon Simpson apparently wrote: Using apple python, numpy 1.10, I get the following error in matplotlib 0.91.2: I do not see this. I have the same mpl and np version, and same Python version, but I'm on Windows. fwiw, Alan Isaac - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Plotting single marker point at zoomed level
Thanks for that, I already have a button to enable picking mode and the original post shows that I have already tried the copy background/restore/blit, however I must have been doing something wrong. Pehaps you can point out what the issue was ro where I was going wrong John Hunter-4 wrote: On Wed, May 28, 2008 at 7:10 AM, New2Python [EMAIL PROTECTED] wrote: One issue that I find now is that the removed marker is not redrawn as removed, in other words, all the original markers remain drawn whether or not the datapoints exist in the array. How can I remove the marker I don't want anymore withought doing a clf() call because I can have over 300,000 datapoints and the redraw will take ages You will need to do some extra work here. I would have a picking mode which is enabled by a key-stroke or button press, and when the mode is enabled, you can copy the background using the copy_background/restore region/blit techniques discussed at http://www.scipy.org/Cookbook/Matplotlib/Animations. Then you can mark your vertices and just draw the vertex marker line over the background. Alternatively, you can use the clipped line approach I pointed you to in my prior post to only plot the vertices in the viewport. You will have to do a little bookkeeping to translate the marked vertices in the viewport to the ones in the original dataset. Unfortunately, I don't have time to write the complete example right now... JDH - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- View this message in context: http://www.nabble.com/Plotting-single-marker-point-at-zoomed-level-tp17470649p17550943.html Sent from the matplotlib - users mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users