Re: [Matplotlib-users] Efficient scatter() w/ markers from plot()?
Ted Drain wrote: I need to efficiently plot a set of x,y points where each point has a different color. I tried multiple calls to plot() with a single point each but that is way too slow. I switched to using scatter() and passing in a list of colors which works great. However, I'd really like to have the marker options from plot() (things like '+' and 'x') which don't work w/ scatter. What's the easiest way to get the markers from plot() with the efficiency (and multi-colors) from scatter? Thanks, Ted Hi Ted, oh - you can use '+' and 'x' and many more markers with scatter. It's unfortunately just not documented in the current release but is fixed in the repository. pylab.scatter(x,y, marker=(4,2)) gives a '+', and pylab.scatter(x,y, marker=(4,2,math.pi/4.)) gives a 'x'. The logic is a follows: marker(numside, type, angle) numside is the number of edges, i.e. 4 for a plus or a cross. type : 0 - a filled symbol, 1 - a star-like symbol, 2 - a asterisk like symbol angle: the symbol gets rotated by this angle So in principle with this you can produce an endless number of different markers... :-) Manuel -- --- Manuel Metz [EMAIL PROTECTED] Argelander Institut fuer Astronomie Auf dem Huegel 71 (room 3.06) D - 53121 Bonn E-Mail: [EMAIL PROTECTED] Web:www.astro.uni-bonn.de/~mmetz Phone: (+49) 228 / 73-3660 Fax:(+49) 228 / 73-3672 --- - 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] Efficient scatter() w/ markers from plot()?
Thanks! I had originally just tried it (ignoring the docs) but my plot just showed dots instead of markers for both 'x' and '+'. Then I read the docs which seemed to indicate they wouldn't work. Late last night I was digging through axes.py and noticed that they should be supported (and I found the scatter example that uses them). My problem was that the point scale input needed to be 3-4 times larger than the default value for the marker to be visible. Once I changed that, everything worked fine. Thanks for the doc patch - that will help everyone else in the future... Ted -Original Message- From: Manuel Metz [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:13 AM To: Ted Drain Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Efficient scatter() w/ markers from plot()? Ted Drain wrote: I need to efficiently plot a set of x,y points where each point has a different color. I tried multiple calls to plot() with a single point each but that is way too slow. I switched to using scatter() and passing in a list of colors which works great. However, I'd really like to have the marker options from plot() (things like '+' and 'x') which don't work w/ scatter. What's the easiest way to get the markers from plot() with the efficiency (and multi-colors) from scatter? Thanks, Ted Hi Ted, oh - you can use '+' and 'x' and many more markers with scatter. It's unfortunately just not documented in the current release but is fixed in the repository. pylab.scatter(x,y, marker=(4,2)) gives a '+', and pylab.scatter(x,y, marker=(4,2,math.pi/4.)) gives a 'x'. The logic is a follows: marker(numside, type, angle) numside is the number of edges, i.e. 4 for a plus or a cross. type : 0 - a filled symbol, 1 - a star-like symbol, 2 - a asterisk like symbol angle: the symbol gets rotated by this angle So in principle with this you can produce an endless number of different markers... :-) Manuel -- --- Manuel Metz [EMAIL PROTECTED] Argelander Institut fuer Astronomie Auf dem Huegel 71 (room 3.06) D - 53121 Bonn E-Mail: [EMAIL PROTECTED] Web:www.astro.uni-bonn.de/~mmetz Phone: (+49) 228 / 73-3660 Fax:(+49) 228 / 73-3672 --- - 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] Why Is This Code Failing?
On Wed, 19 Mar 2008, Rich Shepard wrote: When it runs in the test script the first curve is plotted in a matplotlib window and the program pauses until I close that window by clicking on the upper right button on the frame. Then this traceback is displayed: Update: I stripped the test data file down to a single plot's worth. Tried different tuples in the data so different plotting functions were called. I have pylab.hold(True) as the first statement in the for loop, and now -- with the single plot data -- there is no error trace. However, the code still displays the first curve of the three until I manually close the matplotlib display window. Then the code proceeds to open a new window and draw all three curves, then close itself after the save() command. I've no idea how to clean up the drawing of the first curve and the pause until that window is manually closed. Nothing I've read in the docs or on the web site give me any clues. Clue appreciated. Rich -- Richard B. Shepard, Ph.D. | IntegrityCredibility Applied Ecosystem Services, Inc.|Innovation http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863 - 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] Specifiying Axes and Grid Lines
I've read the users guide and API (both as pdf and on the web site), and do not see how to configure the axes for only left and bottom, and the grid for only horizontal lines. The axes(rect, w) is used to specify the position of the left and bottom lines plus the width and height of the box. What do I put in ~/.matplotlib/matplotlibrc to specify no top or right axes, and no vertical grid lines? Rich -- Richard B. Shepard, Ph.D. | IntegrityCredibility Applied Ecosystem Services, Inc.|Innovation http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863 - 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] Why Is This Code Failing? -- FIXED
On Thu, 20 Mar 2008, Rich Shepard wrote: Clue appreciated. Bingo! Found the problem. The plotting functions are in a separate module, and each was developed interactively using ipython, then copied into the module. As a result, each function retained the show() command at the end, and that was interfering with the intent of the programmatic generation. Commenting out the p.show() command removes the display, but the stored .png is there. Whew! Rich -- Richard B. Shepard, Ph.D. | IntegrityCredibility Applied Ecosystem Services, Inc.|Innovation http://www.appl-ecosys.com Voice: 503-667-4517 Fax: 503-667-8863 - 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] Specifiying Axes and Grid Lines
Rich Shepard wrote: I've read the users guide and API (both as pdf and on the web site), and do not see how to configure the axes for only left and bottom, and the grid for only horizontal lines. The axes(rect, w) is used to specify the position of the left and bottom lines plus the width and height of the box. What do I put in ~/.matplotlib/matplotlibrc to specify no top or right axes, and no vertical grid lines? Rich Sorry, but those options are not presently available at the rc level. Mpl simply does not have easy support for that style of plot. It is on the wish list. Here is one way of turning off vertical grid lines: xgl = ax.xaxis.get_gridlines() for l in gl: l.set_visible(False) To get rid of the upper and right sides of the box I think you would have to do something like box('off') and then use hline and vline calls or methods to manually put in the lower and left boundaries. 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
[Matplotlib-users] How to close the figure after show it?
Hi All,I am using matplotlab to plot some figure. I would like to close the figure after show it 5 sec. My code is pasted below. However, I can not close the figure automatically. Can anyone help me to fix it?Thanks,Brook==import timefrom pylab import *from matplotlib import *x=**y=**x2=**y2=***figure()hold(True)plot(x,y)plot(x2,y2,'g^')axis([0, 100, 0, 100])title('Pylab plot')xlabel('X')ylabel('Y')grid()pylab.show()time.sleep(5)pylab.close() Looking for last minute shopping deals? Find them fast with Yahoo! Search. - 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 close the figure after show it?
I think f = figure(); ... pylab.close(f); should work. --Mike On Mar 20, 2008, at 2:14 PM, Fans Gnu wrote: Hi All, I am using matplotlab to plot some figure. I would like to close the figure after show it 5 sec. My code is pasted below. However, I can not close the figure automatically. Can anyone help me to fix it? Thanks, Brook == import time from pylab import * from matplotlib import * x=** y=** x2=** y2=*** figure() hold(True) plot(x,y) plot(x2,y2,'g^') axis([0, 100, 0, 100]) title('Pylab plot') xlabel('X') ylabel('Y') grid() pylab.show() time.sleep(5) pylab.close() Looking for last minute shopping deals? Find them fast with Yahoo! Search. -- --- 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 -- Michael Hearne [EMAIL PROTECTED] (303) 273-8620 USGS National Earthquake Information Center 1711 Illinois St. Golden CO 80401 Senior Software Engineer Synergetics, Inc. -- - 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] Install problem on Leopard
Hi Folks, I'm having some trouble installing Matplotlib on a Macbook pro running Leopard. I installed macpython 2.5.2, and I have numpy and scipy installed from source for the 2.5.2 installation. Compiling Matplotlib from source, or easy_installing the egg (matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg) both fail with the same error: From the egg: --- ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for architecture ppc collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccG9WQI9.out (No such file or directory) error: Setup script exited with error: command 'g++' failed with exit status 1 Exception exceptions.OSError: (2, 'No such file or directory', 'src/image.cpp') in bound method CleanUpFile.__del__ of setupext.CleanUpFile instance at 0x1b5f4b8 ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/transforms.cpp') in bound method CleanUpFile.__del__ of setupext.CleanUpFile instance at 0x1b5ccd8 ignored Exception exceptions.OSError: (2, 'No such file or directory', 'src/backend_agg.cpp') in bound method CleanUpFile.__del__ of setupext.CleanUpFile instance at 0x1b5f030 ignored -- And from source: -- ... building 'matplotlib.ft2font' extension g++ -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.5/src/ft2font.o build/temp.macosx-10.3-i386-2.5/src/mplutils.o build/temp.macosx-10.3-i386-2.5/CXX/cxx_extensions.o build/temp.macosx-10.3-i386-2.5/CXX/cxxsupport.o build/temp.macosx-10.3-i386-2.5/CXX/IndirectPythonInterface.o build/temp.macosx-10.3-i386-2.5/CXX/cxxextensions.o -L/usr/X11/lib -L/usr/local/lib -L/usr/lib -L/sw/lib -L/usr/X11R6/lib -lfreetype -lz -lstdc++ -lm -o build/lib.macosx-10.3-i386-2.5/matplotlib/ft2font.so -Wl,-framework,CoreServices,-framework,ApplicationServices ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for architecture ppc collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccMIVHPU.out (No such file or directory) error: command 'g++' failed with exit status 1 -- Has anyone else hit up against this before. Do I need to update libJPEG, or modify setup.py? Cheers, - Andrew Charles - 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 filled lines with missing data?
Eric Firing wrote: Both with respect to documentation and functionality, what you are encountering is the historical aspect of masked arrays as a tacked-on part of python numeric packages, and of matplotlib. *sigh* I feel lucky ;-) Support and integration are improving, but still far from perfect. I wish I could help, but my knowledge is lacking... Now with respect to your particular case here, trying to plot a filled line with gaps: poly_between has no notion of masked arrays at present. If it did, how should it behave? Well, what I actually settled on was juat doing using: my_masked_array.filled(0) ...to plot with. At the very least, additional arguments are needed to specify what should happen for fill-type plotting with missing values. Indeed, what I personally would have liked was a complete gap where the data is missing, but I guess that would have to return multiple polygons, and I don't know how that would work? provide them in mpl. I would be happy to fix this gap in mpl's handling of gappy data, ...heh ;-) but I can't make it a priority use of my time right now. No, I understand :-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk - 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 with missing data?
Giorgio F. Gilestro wrote: import numpy as np a = ['','','',1.1,2.2] mask_a = [i == '' for i in a] b = np.ma.MaskedArray(a, mask=mask_a) Not very efficient, though, is it? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk - 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 threadsafe?
Michael Droettboom wrote: At least the Agg backend *looks* to be reasonably threadsafe -- there are no obvious gotchas like global variables etc. Note, though, that multithreading may not gain much in the way of performance since the global interpreter lock is never released around long-running C blocks. It's not performance I'm looking for, it's making sure that MPL apps served from multi-threaded wsgi servers don't screw each others charts up ;-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk - 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 threadsafe?
Eric Firing wrote: In general, I don't think mpl is threadsafe at all; it uses global variables, such as all the rc parameters, that could easily be modified by one thread while being used by another. Yep, I guessed as much, BFL it is then ;-) I think that great care would be needed if one wanted to have multiple threads making plots. Having one plotting thread and any number of threads doing other things, however, should be OK. Out of interest, how does one tell MPL to start a new figure and forget everything that's gone before? At the very least, I think we would have to take all the global state information and put it in a class instance, so there could be multiple plotting machines. Yes. cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk - 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] compiling from svn on windows
Michael Droettboom wrote: That's cool'n'all, but when is svn going to make it into a Windows binary release? ;-) I suspect your question is somewhat rhetorical, but... it will probably be a while ;) Why is that? Who cranks out the binary releases on Windows and what compiler do they use? I know a lot of people (myself included) have had success with MinGW. What's the official compiler used, though? It's a good learning experience, and there's lots on this list willing to help. If we can get more SVN Windows users on board, more crazy Windows-only bugs will get found and squashed sooner... ;) Well, tell me how to get the svn trunk and how to compile and I'll give it a go :-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk - 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] Install problem on Leopard
Andrew Charles wrote: Compiling Matplotlib from source, or easy_installing the egg From the egg: ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for hmm -- odd, I wouldn't think the egg should be linked against what looks like a macports libJPEG -- are you sure it isn't trying to build the egg when you easy_install? And from source: ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for architecture ppc It's trying to link against a macports libJPEG. However, macports doesn't build universal binaries, and the MacPython tries to build them, and hence the problem. I'd try to find another libJPEG -- The UnixImageIO Frameworks form KyngChaos are a good choice, though I don't know off the top of my head how to get MPL to find them. http://www.kyngchaos.com/wiki/software:frameworks -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - 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 close the figure after show it?
Hi, Hi Mike,thanks for your reply. I tried f=figure() and pylab.close(f), but the figure can not be closed automatically. Seems that time.sleep(3) doesn't be called until I close the figure manually. Maybe try setting the figure's interactive property to on? -- Chris - 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 close the figure after show it?
Can you give me a simple example to show how to set the figure's interactive property to on? I appreciate!--Brook--- On Fri, 3/21/08, Christopher Brown [EMAIL PROTECTED] wrote:From: Christopher Brown [EMAIL PROTECTED]Subject: Re: [Matplotlib-users] How to close the figure after show it?To: [EMAIL PROTECTED]Cc: matplotlib-users@lists.sourceforge.netDate: Friday, March 21, 2008, 12:19 AMHi, Hi Mike,thanks for your reply. I tried f=figure() and pylab.close(f), but the figure can not be closed automatically. Seems that time.sleep(3) doesn't be called until I close the figure manually.Maybe try setting the figure's interactive property to on?-- Chris Looking for last minute shopping deals? Find them fast with Yahoo! Search. - 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 close the figure after show it?
Hi Brook, FG Can you give me a simple example to show how to set the figure's FG interactive property to on? I appreciate! import pylab pylab.ion() -- Chris - 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 filled lines with missing data?
Chris, My 2c: Your data is indexed in time, right ? Your x-axis is a date object ? Then use scikits.timeseries http://scipy.org/scipy/scikits/wiki/TimeSeries That package was designed to take missing dates/data into account. That way, you can plot your data with the gaps already taken into account: we have written a specific matplotlib interface, you'll find the details following the link above. I must admit we didn't implement poly_between for timeseries. Most likely, we'd have to implement it for regular masked arrays first, as mentioned by Eric. What you could do is to fill your array with some kind of baseline, such as 0, or your minimum data, or wtvr. That's just a quick trick and no fix. - 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] Install problem on Leopard
I agree you are not using a universal build of python to compile matplotlib. You cannot pass in the -arch i386 -arch ppc flags. Only pass the architecture of your computer. - Charlie On Thu, Mar 20, 2008 at 7:13 PM, Christopher Barker [EMAIL PROTECTED] wrote: Andrew Charles wrote: Compiling Matplotlib from source, or easy_installing the egg From the egg: ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for hmm -- odd, I wouldn't think the egg should be linked against what looks like a macports libJPEG -- are you sure it isn't trying to build the egg when you easy_install? And from source: ld: in /sw/lib/libJPEG.dylib, file is not of required architecture for architecture ppc It's trying to link against a macports libJPEG. However, macports doesn't build universal binaries, and the MacPython tries to build them, and hence the problem. I'd try to find another libJPEG -- The UnixImageIO Frameworks form KyngChaos are a good choice, though I don't know off the top of my head how to get MPL to find them. http://www.kyngchaos.com/wiki/software:frameworks -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - 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 filled lines with missing data?
Pierre, I was interested in learning more about TimeSeries, and had a few questions... Your data is indexed in time, right ? Your x-axis is a date object ? Just to be clear on the language: indexed in time means data for which the x-axis is a series of dates, correct? But I am not sure what is meant by the x-axis being a date object--wouldn't it be a axis object with the values comprising it being date objects? I'm not trying to split hairs, I'm just unclear about the way this is typically described and it would be useful for me to be clear about it. Then use scikits.timeseries http://scipy.org/scipy/scikits/wiki/TimeSeries That package was designed to take missing dates/data into account. That way, you can plot your data with the gaps already taken into account: we have written a specific matplotlib interface, you'll find the details following the link above. I've looked at the link. Could you explain what TimeSeries does that the mpl modules dates and dateutil don't do, or when one would use one versus the other? For my part, I need to simply plot values with dates (and yes with some dates missing no doubt) as the x-axis and am looking for various ways to do it well. Thank you. - 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] Install problem on Leopard
Charlie Moad wrote: I agree you are not using a universal build of python to compile matplotlib. You cannot pass in the -arch i386 -arch ppc flags. Only pass the architecture of your computer. Actually, I think the OP IS using a universal python, thus both flags -- he isn't manually passing in any flags at all. The problem is that it's trying to link in a jpeg lib that isn't Universal. Is there a Universal Binary egg that will work with MacPython 2.5? Note to OP -- maybe you'd have better luck with Apple's Python 2.5 -- it seems that that's what more people are using with Leopard. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] - 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