[Matplotlib-users] Turning off the timezone (and more) in AutoDateFormatter

2009-07-22 Thread Christopher Barker
*60) : "%H:%M:%S %Z", 1.0/(24*3600) : "%H:%M:%S %Z", } self.fallback_format = "%b %d %Y %H:%M:%S %Z" def __call__(self, x, pos=0): scale = float( self._locator._get_unit()

[Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-22 Thread Christopher Barker
-- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar...@noaa

Re: [Matplotlib-users] ipython --pylab without namespace pollution?

2009-07-27 Thread Christopher Barker
y ipy_user_conf.py file, and that had the same effect. thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main recep

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-03 Thread Christopher Barker
's time machine, anyway...). I've lost track of what problems you're trying to solve with idle events, but maybe an abstraction of a timer system would be a more robust approach, for animations, anyway. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Divisio

Re: [Matplotlib-users] matplotlib, build from source on osx 10.5.8

2009-08-07 Thread Christopher Barker
t; build cannot find it. Note that the UnixImageIO Framework from Kyng Chaos should give you a good libpng (and freetype), you just have to make sure that MPL can find it. Another easy option is to use Macports to build it, with the "universal" variant. HTH, -Chris -- Christoph

Re: [Matplotlib-users] matplotlib, build from source on osx 10.5.8

2009-08-07 Thread Christopher Barker
t;include" dirs. You need to add those to MPL's search paths, by editing setup_ext.py. Look for the basedir dict. -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-63

Re: [Matplotlib-users] re grid non regular data, then mask for continents / artifacts

2009-08-12 Thread Christopher Barker
y give you a cleaner result. You may even be able to grab code straight from scipy.interpolate, an apply it on the different portions of your grid separately. HTH, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice

Re: [Matplotlib-users] wx and matplotlib

2009-08-16 Thread Christopher Barker
le files which existed in > 0.90.x) Is this what you are looking for? http://matplotlib.sourceforge.net/examples/index.html in particular, you might want to look at the wx examples here: http://matplotlib.sourceforge.net/examples/user_interfaces/index.html -Chris -- Christopher Barker, Ph.D.

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2009-08-21 Thread Christopher Barker
ot I'll try to remember to contribute it when I get around to it. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206)

Re: [Matplotlib-users] Pareto diagram - align cumulative percentage marker in the middle of the bars

2009-08-25 Thread Christopher Barker
is that the amount of space for the axis labels varies with the size of the figure, as you've discovered. The default for a single axes in a figure is: (0.125, 0.1, 0.9, 0.9) so you might try something like: axes.set_position((0.125, 0.15, 0.9, 0.85) ) what is best depends on what

Re: [Matplotlib-users] best format for MS word?

2009-09-02 Thread Christopher Barker
es support verctor emf, than you might be able to use the MPL Cairo back-end, rather than trying to go to SVG->emf. good luck! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (2

Re: [Matplotlib-users] "Piecewise Cubic Hermite Interpolating Polynomial" in python

2009-09-02 Thread Christopher Barker
-Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar..

Re: [Matplotlib-users] installing matplotlib 0.99 for pyhton 2.6 mac osx 10.5

2009-09-10 Thread Christopher Barker
this up. or: python -c "import sys; print sys.path" That will spew out a bunch of dirs, and where there are should tell you where your python is installed. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voic

Re: [Matplotlib-users] installing matplotlib 0.99 for pyhton 2.6 mac osx 10.5

2009-09-10 Thread Christopher Barker
it you want, it should be easy, except for the dependencies -- I'm not sure what those are anymore, but a little reading of the docs should tell you. Oh, and you'll end up having to build every other extension, too - wxPython, QT, PIL, ??? Without good reason, I'd just go with the p

Re: [Matplotlib-users] Contouring on triangular grids

2009-09-18 Thread Christopher Barker
ocessing time and memory. In particular, it should work better around the edges of a non-rectangular domain. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle,

Re: [Matplotlib-users] matplotlib-0.99.1-py2.5-macosx10.5.dmg

2009-09-23 Thread Christopher Barker
which I think would work? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317

Re: [Matplotlib-users] interactive python session with matplotlib

2009-09-25 Thread Christopher Barker
er thread, so that the main interactive prompt is not blocked. It's handy for mixing an interactive prompt and GUI stuff, even if you aren't using MPL. Plus you get all the other nifty iPython features. Give it try -- it's wonderful. -Chris -- Christopher Barker, Ph.D. Oceanographer

Re: [Matplotlib-users] python script

2009-09-28 Thread Christopher Barker
ns to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/list

Re: [Matplotlib-users] glumpy: fast OpenGL numpy visualization + matplotlib integration

2009-09-29 Thread Christopher Barker
er, OpenGL is pretty darn low-level, so there's a lot of code to write! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115

Re: [Matplotlib-users] scaling arrows in quiver

2009-10-01 Thread Christopher Barker
it irrelevant (x is time, y is velocity). Can I do that with this? > (Maybe I should add "width_units", identical to "units", and deprecate > the latter; this might make the meanings of the kwargs clearer.) +1 But if you're doing that, you may want to make m

Re: [Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-04 Thread Christopher Barker
on for that. sounds like a useful module, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317

Re: [Matplotlib-users] contribution offer: griddata with gaussian average

2009-10-05 Thread Christopher Barker
ussian_kde does, > the documentation is terse. Can I be enlightened here? It looks like they are both part of a similar class of methods: http://en.wikipedia.org/wiki/Kernel_%28statistics%29 As such, it makes sense to me to have them all in SciPy, sharing code and API. -Chris -- Christ

Re: [Matplotlib-users] Installing problems

2009-11-02 Thread Christopher Barker
d work with the python.org Python 2.5 there is: matplotlib-0.99.1.1-py2.6-macosx-10.3-fat.egg for Python 2.6 I haven't had to compiled MPL is a good while. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voic

Re: [Matplotlib-users] Building basemap on OS X 10.6

2009-11-09 Thread Christopher Barker
are running 64 bit -- what a pain this all is. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206

Re: [Matplotlib-users] Py2app application with matplotlib fails on OS X 10.6

2009-11-10 Thread Christopher Barker
so, it seems that Py2app really should include libs that are in /usr/local with the bundle, so that may be a py2app bug/feature. Boy, this is a pain! oh well, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7

Re: [Matplotlib-users] rasterizing a figure

2009-11-12 Thread Christopher Barker
Geoffrey Ely wrote: > Hi, What is the best way to rasterize a figure into a numpy array for > further image processing? untested, but I suspect: > image = numpy.frombuffer( fig.canvas.renderer.buffer_rgba).reshape( shape ) might work -- something like that, anyway. -CHB -- Ch

Re: [Matplotlib-users] Docked/tabbed figures in one window?

2009-11-13 Thread Christopher Barker
xMPL -- it's a nice wrapper for MPL on wx that will save you a bit of work. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115

Re: [Matplotlib-users] close-event

2009-11-16 Thread Christopher Barker
imer that wraps the GUI toolkit timers, but that may be a good idea. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle

Re: [Matplotlib-users] line thicknes in axes

2009-11-17 Thread Christopher Barker
Pavlo Shchelokovskyy wrote: is there is a consistent > way to scale at once thickness of everything drawn on figure, i.e. > axis, plots, fonts?.. I think what you want is to set a dpi that works for you: http://www.scipy.org/Cookbook/Matplotlib/AdjustingImageSize -Chris -- Chris

Re: [Matplotlib-users] 'remote control' matplotlib window

2009-11-17 Thread Christopher Barker
uld be separate from the toolbar that activates those modes. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main recepti

Re: [Matplotlib-users] set figure position

2009-11-22 Thread Christopher Barker
best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > ___ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matp

Re: [Matplotlib-users] bug in run_all.py

2009-11-23 Thread Christopher Barker
t "Running" message come from -- it doesn't look like it's written to accommodate white space. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 f

Re: [Matplotlib-users] Installing matplotlib with Mac OS 10.6

2009-12-02 Thread Christopher Barker
27;ve never heard anyone have a problem with it. Perhaps we should do the same thing with MPL -- I'm sure he'd be glad to share his scripts for building it. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959

Re: [Matplotlib-users] Installing matplotlib with Mac OS 10.6

2009-12-02 Thread Christopher Barker
Christopher Barker wrote: > The diskimage is usually built for the python binary supplied by > python.org -- that is what the message means by the "system version". I > tried to submit a patch to change that message a year or two ago, but I > guess it never got applied -

Re: [Matplotlib-users] Plotting Hex grid

2009-12-17 Thread Christopher Barker
With luck, it's been factored in a way that you can use the drawing code without the binning code. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 981

Re: [Matplotlib-users] Best practices for organizing plotting code? (Greg Novak)

2009-12-22 Thread Christopher Barker
-Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.bar

Re: [Matplotlib-users] newbie question: type check?

2010-01-12 Thread Christopher Barker
c typing. So what is it you're trying to accomplish? Maybe there is a better way. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax

Re: [Matplotlib-users] bezier curve through set of 2D points

2010-01-14 Thread Christopher Barker
ex.html -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception ch

Re: [Matplotlib-users] Printing Graphs and Image Processing Operations

2010-01-19 Thread Christopher Barker
he wx printing code to print. I imagine it's similar for QT and GTK and TK. Note that for wx at least, you do need access to a Windowing system, even if you aren't displaying anything. HTH, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&

Re: [Matplotlib-users] position a wxPython frame near to a matplotlib point

2010-01-22 Thread Christopher Barker
27;d print out some of those coords, so can make sense of them -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115

Re: [Matplotlib-users] Draggable matplotlib legend

2010-01-28 Thread Christopher Barker
ate. Might I suggest that that be made: leg.draggable(True) leg.draggable(False) or leg.draggable('on') leg.draggable('off') or even a property: leg.draggable = True or some such. I'd be nice not to have to keep track of the current state. -Chris -- Christopher

Re: [Matplotlib-users] Matplotlib conflicts with IDLE

2010-02-05 Thread Christopher Barker
Also, I > would rather stick with IDLE. It is the perfect IDE for non-CS students who > shouldn't be spending their time on the complexities of a plotting package. Spyder: http://packages.python.org/spyder/ Looks really promising, but I don't think they've got OS-X package

Re: [Matplotlib-users] Matplotlib Online: HOW TO?

2010-02-08 Thread Christopher Barker
is a fine choice for putting plots on the web. PHPlot may be also -- I know nothing of it. HTH, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115

Re: [Matplotlib-users] Plotting multiline graph with large dataset (6 lines, about 30, 000, 000 points total

2010-02-10 Thread Christopher Barker
In [9]: orig[0:-1:4] # every 4th element Out[9]: array([ 0, 4, 8, 12, 16]) -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6

Re: [Matplotlib-users] Does Matplotlib have Image Processing?

2010-02-10 Thread Christopher Barker
Wayne Watson wrote: > See Subject. not really. Try: http://www.scipy.org/doc/api_docs/SciPy.ndimage.html for that. I think there are other IP libs wrapped for python use, too. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(2

Re: [Matplotlib-users] Finding the Supposed MPL show() "bug".

2010-02-11 Thread Christopher Barker
27;s really a matter of taste. YOu either do: import matplotlib fig = matplotlib.figure or from matplotlib import figure fig = figure. You'll need a lot of things in matplotlib if you're doing much of anything, and "namespaces are one honking great idea", so I do: import ma

Re: [Matplotlib-users] My matplotlib To-Do List

2010-02-12 Thread Christopher Barker
ser standard output -- it sounds like you want the user to see messages, etc. Maybe TK has something similar. Good luck, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fa

Re: [Matplotlib-users] 0.99.1 crashes python on Windows XP [SEC=UNCLASSIFIED]

2010-02-18 Thread Christopher Barker
h particular features turned on or off at compile time. Intel has a lapack that can dynamically select processors, but it's not open-source, and there are licensing issues to re-distributing it. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&

Re: [Matplotlib-users] Looking for a Compiled Demo of MPL Graphics

2010-02-19 Thread Christopher Barker
o isn't available, maybe there's a web site that one >> can download such examples from? >> > -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand

Re: [Matplotlib-users] py2exe message" RuntimeError: Could not find the matplotlib data files"?

2010-02-20 Thread Christopher Barker
me clean up -- but if you read the whole page, you can see that it's gotten pretty easy. Are you still confused? -Chris > On 2/19/2010 8:28 PM, Christoph Gohlke wrote: >> <http://lmgtfy.com/?q=py2exe+matplotlib+data+files&l=1> leads me to >> <http://www.py2ex

Re: [Matplotlib-users] Contour Plotting of Varied Data on a Shape

2010-03-08 Thread Christopher Barker
it. >> >> -Chris >> > > Chris, I found this old thread. Did you ever find code to directly > interpolate a triangulation? sorry, no, not yet. Do you already have the triangulation? if so, it's pretty easy to contour. -Chris -- Christopher Barker, Ph.D. Oceano

Re: [Matplotlib-users] savefig 0.91

2010-03-16 Thread Christopher Barker
Samuel Teixeira Santos wrote: > I fix it. > > It was a dumb error > > I using '\' on windows > and on ubuntu-linux I must use '/'... note that '\' works in Windows for the most part. Or, better yet, use os.path.join() and friends. -Ch

Re: [Matplotlib-users] installation question

2010-03-22 Thread Christopher Barker
tp://www.rpmfind.net/linux/rpm2html/search.php?query=numpy > > http://www.rpmfind.net/linux/rpm2html/search.php?query=python-matplotlib > > http://rpm.pbone.net/index.php3/stat/4/idpl/9548551/com/ipython-0.8.4-1.el5.noarch.rpm.html > > > > > > **/Gary/** > > > > > > > -

Re: [Matplotlib-users] Why the name Axes?

2010-03-23 Thread Christopher Barker
n you have a thing with both an x and y axis, is is an "axes". -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 5

Re: [Matplotlib-users] Problem saving a plot in OSX

2010-03-23 Thread Christopher Barker
e into the OSX save box from another > window/terminal etc, and so could still make new names for the files. You also might try a different back-end. I'm not sure what EPD sets as the default but there are sometimes odd Tk issues. EPD should support wxPython (wxAgg), and maybe the macosx

Re: [Matplotlib-users] basemap and py2exe

2010-03-23 Thread Christopher Barker
nd bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists

Re: [Matplotlib-users] where's superpack?

2010-03-24 Thread Christopher Barker
om matplotlib.org (optional) install the scipy binary from scipy.org and there you go -- I suppose it would be nice to have it all in one install, but that's not too hard. (if you really want all in one -- check out Python(x,y) or EPD) -Chris -- Christopher Barker, Ph.D. Oceanographer Emerg

Re: [Matplotlib-users] show() at the end of each function of an ensemble of scripts

2010-04-20 Thread Christopher Barker
in ipython), I'm bit confused -- does ipython pylab mode not work for this? That's what it's for. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seatt

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-24 Thread Christopher Barker
do this directly. If I get a chance, I will look into .drawshapefile(), and figure I can see how to do it from there. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-24 Thread Christopher Barker
Jeff Whitaker wrote: > On 5/24/10 10:24 AM, Christopher Barker wrote: >> I need to be able to draw a filled polygon from coordinates in memory, >> for instance, but didn't see a way to do this directly. > Chris: If you have the map projection coordinates of the polygon,

Re: [Matplotlib-users] Mac backend problems for nearly all backends.

2010-05-25 Thread Christopher Barker
I'm using the python.org python. >> Machine 2: OSX 10.5.7 Macbook pro/Intel >> Code versions: python 2.5.4, Numpy 1.3.0, Scipy 0.7.0 (all obtained through >> fink.) OK -- then a fink issue, rather than a Macports one -- same idea, though. My impression is that neither fink nor

Re: [Matplotlib-users] easy_install and eggs

2008-06-02 Thread Christopher Barker
t work right with a non-framework build. I think it should work with either the 2.5 Apple supplies with OS-X 10.5, or the python.org 2.5 build. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point W

Re: [Matplotlib-users] trying to change the number of elements in array while preserving data

2008-06-04 Thread Christopher Barker
3, 94, 95, 96, 97, 98, 69], [ 70, 71, 102, 103, 104, 105, 106, 107, 108, 79], [ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89], [ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]]) >>> -- Christopher Barker, Ph.D. Oceanographer Emergency Response Divi

Re: [Matplotlib-users] What is the recommended way of Installing MPL 0.9.8 on Leopard?

2008-06-09 Thread Christopher Barker
pretty easy, at least for someone running Leopard. Or is bdist_mpkg not working for MPL anymore? Charlie, where/how did you get the Universal libs for the dependencies? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959

Re: [Matplotlib-users] Newbie trying to install matplotlib on OS10.5

2008-06-12 Thread Christopher Barker
-py2.5.egg (I may not have the re-naming right, I'm not running 10.5 to test.) -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA

Re: [Matplotlib-users] Newbie trying to install matplotlib on OS10.5

2008-06-12 Thread Christopher Barker
that I don't find myself entangled in wx version hell. """ recent version of the wx back-end no longer rely on compiled code, so wx version hell is a think of the past (you will get better performance with wx 2.8+, though). -Chris -- Christopher Barker, Ph.D. Oceanographe

Re: [Matplotlib-users] plotting speed

2008-06-16 Thread Christopher Barker
ll know it's likely that it can be done. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (

Re: [Matplotlib-users] plotting speed

2008-06-16 Thread Christopher Barker
Michael Droettboom wrote: > Christopher Barker wrote: >> For what it's worth, apparently you can speed up GraphicsContext code >> substantially if you use it right -- > Can you be more specific about this no. I haven't done much with it myself. > or provide a r

Re: [Matplotlib-users] plotting speed

2008-06-16 Thread Christopher Barker
ly wanted to, you could still transfer the Agg buffer to a wxBitmap, and draw to that with GraphicsContext anyway. So, like you, I'm curious (and I need GraphicsContext for other projects), so I'd still like to know what the deal is. -Chris -- Christopher Barker, Ph.D. Oceanographe

Re: [Matplotlib-users] plotting speed

2008-06-18 Thread Christopher Barker
#x27;t dug into the MPL code to see how it's being used there. Also, the whole thing almost hangs (134 seconds to draw) if I up the number of points to 5000! Could you alter this to use the drawing calls MPL is actually using, then we can send it on the wxPython list. -Chris -- Christoph

Re: [Matplotlib-users] plotting speed

2008-06-18 Thread Christopher Barker
was a > clipping bug in the Wx backend that I have fixed. thanks for the tip, and even more so, all your work on this. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-632

Re: [Matplotlib-users] ploting a contour graph from data files

2008-07-16 Thread Christopher Barker
#x27;ll be glad you've learned it! Have you read the MPL docs -- there's a lot of good, simple examples in there: http://matplotlib.sourceforge.net/users_guide_0.98.1.pdf -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R

Re: [Matplotlib-users] ocean profile

2008-07-16 Thread Christopher Barker
nto a regular grid. Here is wiki page about that: http://www.scipy.org/Cookbook/Matplotlib/Gridding_irregularly_spaced_data In there, is says that MPL does not have this functionality built in -- is that still true? If so, I'd like to see the Delaunay stuff included -- in fact, you could contour irregular da

Re: [Matplotlib-users] Installation woes: phantom Numpy version?

2008-08-08 Thread Christopher Barker
be default, or into Library/Frameworks if you enable the Framework build. > Numpy and matplotlib build > against it with no trouble. Hooray! Cool, I didn't expect them to be 2.6 compatible! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/

Re: [Matplotlib-users] windrose OO

2008-08-11 Thread Christopher Barker
PL. have you ported it over yet? Can anyone else help out with a port? Thanks, -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 5

Re: [Matplotlib-users] windrose OO

2008-08-11 Thread Christopher Barker
Christopher Barker wrote: > have you ported it over yet? Can anyone else help out with a port? Note: it looks pretty easy, if yu know what you are doing: from matplotlib.transforms import Interval, Value Then in the code, I inly see Interval and Value used here: self.rintv = Inter

Re: [Matplotlib-users] plotting without using pylab

2008-10-02 Thread Christopher Barker
efault. Try changing that in your .matplotlibrc file, or try: import matplotlib matplotlib.use('Agg') # or 'wxagg', or 'whatever' import pylab that should do it. What back end - are you/do you want to - use? despite all the pylab examples, the OO inteface has a

Re: [Matplotlib-users] canvas.print_figure printing a variable amount of my figure

2008-10-06 Thread Christopher Barker
t; canvas.print_figure("test"+str(DPI)+"dpi.png", dpi=DPI) Then you'll get what I think you want. Maybe this will help: http://www.scipy.org/Cookbook/Matplotlib/AdjustingImageSize though it there, I talked about Figure.savefig(). I don't know if there is a differen

Re: [Matplotlib-users] canvas.print_figure printing a variable amount of my figure

2008-10-06 Thread Christopher Barker
y--such as a > renderer.dpi setting that is ignored during rendering. I'm not familiar with this one, but I think it does make sense to address these all at once. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 52

Re: [Matplotlib-users] compiling problems with py2.6, os 10.4

2008-10-07 Thread Christopher Barker
provided by OS-X. You will need libpng, many of the others are now supplied by OS-X. There are a number of ways to get libpng: Try googling around a bit for "OS-X matplotlib dependencies building libpng" and see what you get. The other option is to wait until someone else builds a bina

Re: [Matplotlib-users] IOError: decoder jpeg not available

2008-11-06 Thread Christopher Barker
> Is it possible to combine jpegs with matplotlib or PIL ? I don't know what you mean by "combine", but PILL can probably do it, once you get jpeg support working. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(

Re: [Matplotlib-users] matplotlib egg finds wrong version of numpy

2008-11-19 Thread Christopher Barker
o get easy_install to use the right Python anyway, but do you need to build MPL? can you use the binary: matplotlib-0.98.3-py2.5-macosx-10.3.egg (note that that is OS-X 10.3 and above) you may have to re-name it to: matplotlib-0.98.3-py2.5.egg to get easy_install to recognize it.

Re: [Matplotlib-users] Import error on OS X: Reason: image not found

2008-11-19 Thread Christopher Barker
d "TinkerTool", but you can also change the finder setting with the command line: http://lifehacker.com/software/command-line/show-hidden-files-in-finder-188892.php -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 52

Re: [Matplotlib-users] Saving to a file in a specified directory (and creating said directory along the way)

2008-11-20 Thread Christopher Barker
Joshua Lippai wrote: > Now that just leaves creating the directory. I like > the cbook.mkdirs implementation a lot better than the non-recursive > version in os... thanks for the tip! why not os.makedirs() ? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Divi

Re: [Matplotlib-users] general matplotlib usage questions

2008-11-20 Thread Christopher Barker
and works well. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main

Re: [Matplotlib-users] A wxPython/Matplotlib/Basemap example

2008-11-20 Thread Christopher Barker
the above line should be: self.canvas = FigureCanvas(self.PlotPanel, -1, self.figure) One thing wx does do "wrong" is let you put a control on one parent, then Add it to a sizer attached to a different parent -- it should probably raise an error when you do that. -Chris -- Christophe

Re: [Matplotlib-users] Any news on wxMPL ?

2008-11-21 Thread Christopher Barker
development? Yes -- even if Ken does come back online, I'd like to see wxMPL hosted by the MPL project anyway -- it would be easier to find, and more likely to get tested and patched. Maybe as a toolkit? I don't have a lot of time for it, but I need it too, so I'll help some. -Chri

Re: [Matplotlib-users] Any news on wxMPL ?

2008-11-21 Thread Christopher Barker
7;d be happy to host it in the mpl_toolkits dir if someone brings it > up to 0.98 and will maintain it. That would be great, John. I hope someone can take this on -- I'm doing non-MPL stuff at the moment, so I can't take it no right now. Maybe in the future. -Chris -- Christopher

Re: [Matplotlib-users] Font sizes for web application

2008-12-01 Thread Christopher Barker
Jesper Larsen wrote: > I have a web application in which I would like to scale the plots down > if the users horizontal screen size is less than 800. http://www.scipy.org/Cookbook/Matplotlib/AdjustingImageSize -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Di

Re: [Matplotlib-users] Can matplotlib be run from PythonWin IDE in interactive mode?

2008-12-03 Thread Christopher Barker
e with the IDE, and start it from a command line. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main rece

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread Christopher Barker
rent version 1.0.0) /usr/lib/libmx.A.dylib (compatibility version 1.0.0, current version 47.1.0) so it's not linked to the dynamic libpng -- hmmm. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R

Re: [Matplotlib-users] [matplotlib-devel] os x egg fubar?

2008-12-16 Thread Christopher Barker
separately with a bunch of different flags, then lipo-ing the two binaries together. Could anything funky like that be going on here? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (

Re: [Matplotlib-users] requesting for testing, os x installers

2008-12-19 Thread Christopher Barker
s for everyone's work getting this put together. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception chris.b

Re: [Matplotlib-users] [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Christopher Barker
ransition from command line use to embedding, help folks understand the structure of MPL, and is the "right" way to do it (IMHO) with an OO language anyway. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 vo

Re: [Matplotlib-users] [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-05 Thread Christopher Barker
lts') While we are at it, discourage the use of "import *" ! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA

Re: [Matplotlib-users] [matplotlib-devel] What would you like to see in a book about Matplotlib?

2009-01-06 Thread Christopher Barker
n. It seems there is an effort to establish a new "standard" style for example, etc, which will help a lot. -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle,

Re: [Matplotlib-users] universal_newline in matplotlib 0.91.2?

2009-01-26 Thread Christopher Barker
John Hunter wrote: > OK, I can reproduce the problem and the solution is easy. Open the > file in universal mode and pass the file handle to csv2rec:: Shouldn't csv2rec open files in Universal mode by default anyway? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergen

Re: [Matplotlib-users] matplotlib-0.98.5.2-py2.5-macosx10.5.mpkg install problem

2009-01-26 Thread Christopher Barker
root wheel 72 Nov 18 2007 /usr/bin/python -> ../../ > System/Library/Frameworks/Python.framework/Versions/2.5/bin/python It's looking for: /Library/Frameworks/Python.framework/.. (not the one Apple installed in System) -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency

Re: [Matplotlib-users] bug with installation from KUBUNTU aptitude

2009-01-27 Thread Christopher Barker
L is setting TK as the default back-end, so maybe TK should be a dependency if they're doing that. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98

Re: [Matplotlib-users] universal_newline in matplotlib 0.91.2?

2009-01-28 Thread Christopher Barker
John Hunter wrote: > On Mon, Jan 26, 2009 at 1:10 PM, Christopher Barker >> Shouldn't csv2rec open files in Universal mode by default anyway? > > The only down side I can see to this is universal support can be > disabled at build time, though it is on by default.

  1   2   3   4   >