Re: [Matplotlib-users] How to keep only the x first terms of an array(numpy)?

2012-01-30 Thread Robert Kern
a correct answer. http://www.scipy.org/Mailing_Lists -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] cannot import animation module

2011-11-23 Thread Robert Kern
. You will have to install that version instead. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] missing library animation from enthought distribution

2011-11-22 Thread Robert Kern
: $ enpkg --remove matplotlib -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] use matplotlib to produce mathathematical expression only

2011-05-16 Thread Robert Kern
On Mon, May 16, 2011 at 09:23, Johannes Radinger jradin...@gmx.at wrote: Original-Nachricht Datum: Mon, 16 May 2011 08:28:49 -0500 Von: Robert Kern robert.k...@gmail.com An: SciPy Users List scipy-u...@scipy.org CC: matplotlib-users@lists.sourceforge.net Betreff: Re

Re: [Matplotlib-users] Possible memory leak?

2010-11-18 Thread Robert Kern
. This will contain all of those objects with a __del__ that prevented a cycle from being collected. I recommend using objgraph to diagram the graph of references to those objects. It's invaluable to actually see what's going on. http://pypi.python.org/pypi/objgraph -- Robert Kern I have come

Re: [Matplotlib-users] matplotlib.delauney with periodic boundary conditions

2010-10-22 Thread Robert Kern
conditions into account, or alter the points I input such that matplotlib.delaunay interprets them as being on the surface of the torus. No, there isn't. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: [Matplotlib-users] matplotlib.delauney with periodic boundary conditions

2010-10-22 Thread Robert Kern
. That's probably close enough. There's some bookkeeping left as an exercise for the reader, but it's nothing unreasonable. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Robert Kern
have a little eps2cmyk.py script he could run on his MPL-generated EPS files for colorspace conversion. Just an afternoon hack. :) You can also use my numpy-aware wrappers: http://www.enthought.com/~rkern/cgi-bin/hgwebdir.cgi/lcms/ -- Robert Kern I have come to believe that the whole world

Re: [Matplotlib-users] how to plot the empirical cdf of an array?

2010-07-09 Thread Robert Kern
as an unnormalized empirical CDF. Alan's code is good. Unless if you have a truly staggering number of points, there is no reason to bin the data first. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: [Matplotlib-users] how to plot the empirical cdf of an array?

2010-07-09 Thread Robert Kern
not sure which one would be best. It probably doesn't matter much. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] ipython pylab switch, GDAL, Enthought

2010-04-13 Thread Robert Kern
Python bindings expect its version and matplotlib expects another version. If so, how can I avoid it? You would have to rebuild the GDAL Python bindings against Enthought's numpy. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made

Re: [Matplotlib-users] ipython pylab switch, GDAL, Enthought

2010-04-13 Thread Robert Kern
). Hmm, don't know. Getting a gdb traceback for the bus error would help identify the problem. PS.: Sorry for the mail-list noob question, but how can I nicely reply to your answer like you replied to my question, with 'Robert Kern wrote' and so on? There's no reply possible on sourceforge

Re: [Matplotlib-users] ipython pylab switch, GDAL, Enthought

2010-04-13 Thread Robert Kern
pretty bad recently. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

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

2010-03-11 Thread Robert Kern
the existing delaunay code by default, and hopefully optionally use the not-as-good-a-license code the Robert Kern put in SciPy. I did what now? -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

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

2010-03-11 Thread Robert Kern
On 2010-03-11 15:49 PM, Chris Barker wrote: Robert Kern wrote: the triangulation. Yes, it would use the existing delaunay code by default, and hopefully optionally use the not-as-good-a-license code the Robert Kern put in SciPy. I did what now? I thought you'd put a wrapper of a delaunay

Re: [Matplotlib-users] Bug: string.letters

2010-03-09 Thread Robert Kern
]:'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' PyGTK calls locale.setlocale() and thus may be affecting string.letters. The lesson seems to be that the only proper use for string.letters is for testing membership, in which case the order does not matter. Yes. -- Robert Kern I have come

Re: [Matplotlib-users] Trouble gridding irregularly spaced data

2010-02-16 Thread Robert Kern
with the construction of the Delaunay triangulation. Sometimes the algorithm fails. This is one way that it fails. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying

Re: [Matplotlib-users] Import bug for numpy = 2.0

2010-02-15 Thread Robert Kern
.__version__) It's been noted and fixed in SVN. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] Replying with Thunderbird. Reply All doesn't cut it all the time.

2009-12-07 Thread Robert Kern
just responded to the list and not including our individual addresses at all. With very rare exceptions, everyone who posts is already on the list. I subscribe to the list via the GMane NNTP interface and hate receiving private-looking (hence urgent-looking) replies in my inbox. -- Robert Kern

Re: [Matplotlib-users] matplotlib with Qt4 backend

2009-11-12 Thread Robert Kern
file is intriguing, but it only seems to be used in the X11 QApplication). dtrace doesn't actually show either signal(3) or sigaction(3) being called at all. Actually, running a program under dtrace while probing those functions makes the problem go away. Sometimes. -- Robert Kern I have come

Re: [Matplotlib-users] matplotlib with Qt4 backend

2009-11-12 Thread Robert Kern
On 2009-11-12 16:44 PM, Andrew Straw wrote: Robert Kern wrote: On 2009-11-12 12:05 PM, Andrew Straw wrote: Celil Rufat wrote: I just installed matplotlib on Snow Leopard 10.6 with the Qt4 backend (via macports). However, when I try one of the Qt4 examles: python /opt/local/share/py26

Re: [Matplotlib-users] Circular colormaps

2009-11-09 Thread Robert Kern
range of such a colormap. However, it should be noted that I have found such colormaps to appear a little washed out and drab. But then, I'm colorblind. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: [Matplotlib-users] ImportError: No module named ma

2009-10-12 Thread Robert Kern
numpy.core.ma was introduced. It seems like your installation of numpy 1.3.0 did not override Apple's version. To double-check: import numpy print numpy.__file__ -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own

Re: [Matplotlib-users] ImportError: No module named ma

2009-10-12 Thread Robert Kern
anymore. It is now numpy.ma. Upgrade to a more recent matplotlib. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] ImportError: No module named ma

2009-10-12 Thread Robert Kern
/.../foo.egg/download which does not obviously mean this is the URL for foo.egg unless if you know to remove the final /download part. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though

Re: [Matplotlib-users] Images and memory management

2009-10-11 Thread Robert Kern
(http://en.wikipedia.org/wiki/Jpeglib). However, PIL does not use make use of such capabilities. It just reads in the data into uncompressed memory just like it does with any other image format. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma

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

2009-10-04 Thread Robert Kern
/SciPy.stats.kde.gaussian_kde.html No. It is probably closer to radial basis function interpolation (in fact, it almost certainly is a form of RBFs): http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html#id1 -- Robert Kern I have come to believe that the whole world is an enigma, a harmless

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

2009-10-04 Thread Robert Kern
Ryan May wrote: On Sun, Oct 4, 2009 at 4:21 PM, Robert Kern robert.k...@gmail.com wrote: On 2009-10-04 15:27 PM, Christopher Barker wrote: Václav Šmilauer wrote: about a year ago I developed for my own purposes a routine for averaging irregularly-sampled data using gaussian average

Re: [Matplotlib-users] incorrect boxplot?

2009-09-14 Thread Robert Kern
, but I am curious to hear the explanations for this discrepancy. prctile does not handle the case where the exact percentile lies between two items. scoreatpercentile does. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own

Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Robert Kern
(figsize=(9, 6), dpi=120) pyplot.plot(x, y) pyplot.show() -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] speeding-up griddata()

2009-07-14 Thread Robert Kern
when interpolating several times using the same grid? One would construct a Triangulation() object with the (x,y) data points, get a new NNInterpolator() object using the .nn_interpolator(z) method for each new z data set, and then interpolate your grid on the NNInterpolator. -- Robert Kern I

Re: [Matplotlib-users] speeding-up griddata()

2009-07-14 Thread Robert Kern
On 2009-07-14 12:52, Robert Cimrman wrote: Robert Kern wrote: On 2009-07-13 13:20, Robert Cimrman wrote: Hi all, I would like to use griddata() to interpolate a function given at specified points of a bunch of other points. While the method works well, it slows down considerably

Re: [Matplotlib-users] plot a triangular mesh

2009-05-26 Thread Robert Kern
the LinearInterpolator code and Triangulation's docstring to describe its attributes. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] Problem Using/Installing the matplotlib

2009-02-10 Thread Robert Kern
. Show me your PYTHONPATH, and I can point out what else is wrong. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] Problem Using/Installing the matplotlib

2009-02-10 Thread Robert Kern
or sys.path. It is the directory that *contains* your packages that needs to be on the sys.path; but as I already noted, site-packages is built in, so you don't need to add it yourself. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

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

2008-11-18 Thread Robert Kern
. The Python executable that gets run by the easy_install script is the one which the eggs get installed for. http://pypi.python.org/pypi/setuptools -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret

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

2008-11-18 Thread Robert Kern
/local/bin). I have recently migrated from PPC to Intel Mac, and I suspect that the migration assistant may have been too thorough... Your PYTHONPATH may also be messed up. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

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

2008-11-17 Thread Robert Kern
have been delivered with the OS). No, /opt/local is MacPorts territory. How can I tell the egg where to find the proper version of numpy? Thanks! Are you sure you are using the same versions of Python to run and install both of these? -- Robert Kern I have come to believe

Re: [Matplotlib-users] scipy, matplotlib import errors

2008-09-25 Thread Robert Kern
occurs. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] Kriging with Matplotlib

2008-05-16 Thread Robert Kern
://code.google.com/p/random-realizations/ http://www.enthought.com/~rkern/cgi-bin/hgwebdir.cgi/gp/ Anand has been doing more work on RandomRealizations than I have on gp, so try it first. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

Re: [Matplotlib-users] Prism colormap

2008-04-07 Thread Robert Kern
Rich Fought wrote: The prism colormap repeats the same pattern over and over instead of spreading itself over the plotted data range in a pcolor plot. Is this expected behavior? Yup. prism and flag are designed to repeat. -- Robert Kern I have come to believe that the whole world

Re: [Matplotlib-users] scipy, matplotlib import errors

2008-04-01 Thread Robert Kern
module. Find it and rename it. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] Basemap - ImportError: libgeos_c.so.1

2007-12-15 Thread Robert Kern
Jeff Whitaker wrote: Dave: Perhaps you need to add /usr/local to LD_LIBRARY_PATH? It would be /usr/local/lib, not /usr/local -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though

Re: [Matplotlib-users] Automatic Marker Generation

2007-10-04 Thread Robert Kern
itertools.cycle([ 'o','^','v','','', 's','+','x','D','d', '1','2','3','4','h', 'H','p','|','_']) for kk, m in itertools.izip(range(A.shape[0]), marker_cycle()): loglog(f, A[kk], linestyle='-', marker=m, lw=2) -- Robert Kern I have come to believe that the whole world

Re: [Matplotlib-users] All-in-one distribution of python/numpy/scipy/mpl for windows

2007-05-14 Thread Robert Kern
. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco - This SF.net email

Re: [Matplotlib-users] use of enthought Python for matplotlib/numpy

2007-05-11 Thread Robert Kern
;) While we at Enthought are not updating the all-in-one installer anymore, we are distributing up-to-date binaries as eggs. http://code.enthought.com/enstaller/ -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: [Matplotlib-users] freetypelib problem scipy superpack matplotlib

2007-05-04 Thread Robert Kern
work with MPL. No, it was built against a dynamic freetype library which was not included with the package. If it had been statically linked, there wouldn't be a problem. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own

Re: [Matplotlib-users] matplotlib and py2exe

2007-03-31 Thread Robert Kern
, line 5, in ? File matplotlib\colors.pyc, line 33, in ? File matplotlib\numerix\__init__.pyc, line 147, in ? ImportError: No module named random_array Did you follow these instructions? http://www.py2exe.org/index.cgi/MatPlotLib -- Robert Kern I have come to believe that the whole

Re: [Matplotlib-users] backends issue

2007-02-21 Thread Robert Kern
gobject ImportError: No module named gobject What can I do? Install PyGTK. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] Newbie trying to get matplotlib up and running on Mac mini.....

2007-02-05 Thread Robert Kern
/*checkout*/matplotlib/trunk/matplotlib/lib/matplotlib/__init__.py?revision=2835 Put it in /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/ -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-11 Thread Robert Kern
against that version of wx, which is not the one you want. Try this: Yes, thank you for figuring that out! That's the part that I forgot about. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Robert Kern
-- 4 % python Try running with pythonw. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Robert Kern
John Hunter wrote: Robert == Robert Kern [EMAIL PROTECTED] writes: Robert Personally, I think the warnings are a bit overzealous and Robert should be silenced. It's not as if the user is explicitly Robert telling the font manager to load those specific Robert fonts

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Robert Kern
belinda thom wrote: Robert, Try running with pythonw. Do you know how to fix this in IDLE (it must be using python as opposed to pythonw somehow). I'm afraid that I don't know enough about IDLE to help you. -- Robert Kern I have come to believe that the whole world is an enigma

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Robert Kern
-discussion, it's not relevant there). -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco

Re: [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread Robert Kern
belinda thom wrote: Hi, On Jan 10, 2007, at 5:56 PM, Robert Kern wrote: belinda thom wrote: I went back and retried the plotting w/wx as a backend and discovered that wx FAILS with PYTHONW and PYTHON (appended). Okay, what version of wxPython did you install? What version of wxPython

Re: [Matplotlib-users] How do I include the stop value in the array by using arrayrange?

2006-11-17 Thread Robert Kern
, arange() with floating point numbers is unreliable. Because of floating point precision issues, it is often difficult to tell whether or not the endpoint will be included. Use linspace() instead. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made

Re: [Matplotlib-users] tex problem

2006-10-31 Thread Robert Kern
$' xlabel(label) After the source code containing the string literal is parsed, the string is simply a string. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying

Re: [Matplotlib-users] bug in numerix?

2006-09-26 Thread Robert Kern
want this, then you can configure ipython to import everything you want from numpy *after* pylab. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth