h new z
data set, and then interpolate your grid on the NNInterpolator.
--
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 attemp
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. W
0.,0.1)
> y= x**1.5 - 0.25*x**2
>
> pyplot.figure(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
mode, but like to use namespaces to keep things clean.
ipython -wthread
--
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
q1, med, q3 = mlab.prctile(d,[25,50,75])
>
> I[36]: q1
> O[36]: 2.0
>
> I[37]: med
> O[37]: 4.0
>
> I[38]: q3
> O[38]: 6.0
>
>
> Could this be due to a rounding? I don't know, but I am curious to hear
> the explanations for this discrepancy.
On 2009-09-14 16:08 PM, Gökhan Sever wrote:
>
>
> On Mon, Sep 14, 2009 at 3:45 PM, <mailto:jason-s...@creativetrax.com>> wrote:
>
> Robert Kern wrote:
> > prctile does not handle the case where the exact percentile lies
> between two
>
p://www.scipy.org/doc/api_docs/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 t
Ryan May wrote:
> On Sun, Oct 4, 2009 at 4:21 PM, Robert Kern 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
>>>> irregular
y have entirely different purposes.
http://en.wikipedia.org/wiki/Kernel_density_estimation
--
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."
to a dense raster-image matrix
> (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
n of Python.
Apple's version of Python comes with numpy 1.0.1, before 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
&
y. numpy.core.ma is not the location of that subpackage
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
and manually install it (easy_install --install-dir)
I suspect that that version of easy_install has not been fixed to parse
Sourceforge's new download pages.
--
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
BTW, please do not Cc: me. I am subscribed to the list and read through GMane.
It's annoying to get list replies to my email where I don't want them.
On 2009-10-12 15:38 PM, John Hunter wrote:
> On Mon, Oct 12, 2009 at 3:21 PM, Robert Kern wrote:
>> On 2009-10-12 15:16 PM
hroma and hence the largest
dynamic 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 ma
Actually, running a program under dtrace while probing
those functions makes the problem go away. Sometimes.
--
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 underlyi
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). How
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
"I have come to believe that the whol
or later is required; you have %s' % numpy.__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 a
ntours explicitly.
It's not a problem with your points lying inside a triangle. There is some
other
problem 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 worl
RSTUVWXYZ'
>
> In [3]:import locale
>
> In [4]:locale.getpreferredencoding ()
> Out[4]:'UTF-8'
>
> In [5]:string.letters
> Out[5]:'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
PyGTK calls locale.setlocale() and thus may be affecting
gt; 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?
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enig
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 w
d to the
> Enthought numpy creates the Bus Error?
Not so much a double import. Only one version ever gets imported, but the GDAL
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 ag
case
> (Tried ReadAsArray from a gdal dataset and imshow'ed it without problems,
> apart from that I had to call show() because of the lack of the -pylab
> switch, but other than that, fine).
Hmm, don't know. Getting a gdb traceback for the bus error would help identify
the proble
it's been getting 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.
out new.__file__ just before where the exception
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 h
te-packages (which must 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 Ke
nstead. 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 ow
quot; for more information.
$ /Library/Frameworks/Python.framework/Versions/Current/bin/python
Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Type "help", "copyright", "credits" or "license" for mor
binaries in /opt/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 harmles
a problem with ccompiler, but ccompiler.py is on that
>> directory.
It looks like you have a problem with your PYTHONPATH. You shouldn't have
c:\Python25\Lib\site-packages\numpy\ on your PYTHONPATH. Show me your
PYTHONPATH, and I can point out what else is wrong.
--
Robert Kern
&quo
PYTHONPATH 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
suggestion or not.
delaunay has a linear interpolator implemented in C++ that could be used for
this purpose, too. The natural neighbor interpolator is only for Delaunay
triangulations, but the linear interpolator should be usable for general
triangulations.
--
Robert Kern
"I have come to b
hould be able to figure out how to use the
underlying
utility functions compute_planes() and linear_interpolate_grid() from 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 enig
to build it yourself from
sources. You can remove EPD's matplotlib 1.0.1 like so:
$ 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 atte
e was added in matplotlib 1.1.0. 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 underl
ked this
question on scipy-user and received 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
s no
such thing 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 terri
use one of the "steps" linestyles; I'm 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
t it
> might get the OP out of a bind with minimal work, and he'd 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-
he
> periodic boundary 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
tha
grid, then pull out the center.
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 o
retty easily, though. Call gc.collect()
then examine the list gc.garbage. 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&
ut mathtex. It is matplotlib's TeX parsing engine and renderer
broken out into a separate library:
http://code.google.com/p/mathtex/
Also, please send matplotlib questions just to the matplotlib list. Thanks.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a
On Mon, May 16, 2011 at 09:23, Johannes Radinger wrote:
>
> Original-Nachricht
>> Datum: Mon, 16 May 2011 08:28:49 -0500
>> Von: Robert Kern
>> An: SciPy Users List
>> CC: matplotlib-users@lists.sourceforge.net
>> Betreff: Re: [Matplotlib-u
nd unavoidably attempted.
> WX / MATPLOTLIB FAILURE
> ------
>
> 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
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
>
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 t
off numpy-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
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).
>> O
ng the wxAgg back-end 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 terr
med matplotlib.pylab
Hrmm. Unfortunately, the matplotlib package in (at least) the Intel version is
still missing matplotlib/__init__.py. You can download the file from here:
http://matplotlib.svn.sourceforge.net/viewvc/*checkout*/matplotlib/trunk/matplotlib/lib/matplotlib/__init__.py?revision=
it supports?
I only see _ns_backend_agg.so and _tkagg.so so I imagine it only support TkAgg
for the GUI (and possibly whatever backends that don't require extension
modules).
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made
k.py",
> line 6, in ?
> import 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 thou
;numerix' will make your code
difficult to understand.
--
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
uot;, line 1, in ?
> File "matplotlib\pylab.pyc", line 199, in ?
> File "matplotlib\cm.pyc", line 5, in ?
> File "matplotlib\colors.pyc", line 33, in ?
> File "matplotlib\numerix\__init__.pyc", line 147, in ?
> ImportError: No module named random
Tim Hirzel wrote:
> Its a little tough right now that os x doesn't have one python
> install to rule them all.
Yes it does.
http://www.python.org/download/
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terribl
> one Apple provides doesn't 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 ha
Samuel M. Smith wrote:
> So the conclusion is pythonmac matplotlib uses a statically linked
> freetype so it doesn't look into /usr/local/lib
> and Fonnesbeck's scipy superpack matplotlib is using a dynamically
> linked freetype which is looking into /usr/local/lib
Yes
Robert Kern wrote:
> Christopher Barker wrote:
>> Samuel M. Smith wrote:
>>> I did not have this problem with the matplotlib on
>>> http://pythonmac.org/packages/py25-fat/dmg/matplotlib-0.90.0-py2.5-macosx10.4-2007-02-20.dmg
>> That one was probably built with a s
add extra donuts ;)
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 t
or the Mac,
though.
--
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
Christopher Barker wrote:
> Robert Kern wrote:
>> Mark Bakker wrote:
>>> I think it would be very useful to have one installer that gets a
>>> reasonable distrubtion installed (like the old Enthought installer).
>>> Isn't something like that in the works
oat(n), 2), 1.0])
pylab.plot(x2, y2)
--
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.&quo
est one.
"""
return itertools.cycle([
'o','^','v','<','>',
's','+','x','D','d',
'1','2','3','4','h
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 a
ixel in the colormap. This would give
more
reasonable results even with misapplied colormaps. However, it will probably be
less efficient to implement.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own m
packages/pkg_resources.py", line 1712,
> in _handle_ns
> module = sys.modules[packageName] = new.module(packageName)
> AttributeError: 'module' object has no attribute 'module'
You have a new.py module somewhere which is interfering with the s
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
sian processes (covariance functions, etc.).
http://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
paste the exact error message here.
--
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
___
ide effect. If you don't 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 t
of the object is treated.
label = r'$\textrm{test}_2$'
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 t
name.
2. However, 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 h
75 matches
Mail list logo