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

2012-01-30 Thread Robert Kern
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

Re: [Matplotlib-users] cannot import animation module

2011-11-23 Thread Robert Kern
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

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

2011-11-22 Thread Robert Kern
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

Re: [Matplotlib-users] py2app setup.py example?

2011-09-01 Thread Robert Sudwarts
Apologies -- I should have read the subject line! :) On 1 September 2011 14:00, Carlos Grohmann wrote: > Hello Robert, > > Thank you for your kind response, but I'm looking into py2app, for Mac OSX, > and it is a bit different than py2exe. I do have a py2exe script working &g

Re: [Matplotlib-users] py2app setup.py example?

2011-09-01 Thread Robert Sudwarts
Hi Carlos, It's a bit tricky giving you a complete example as the specifics will vary considerably depending on which versions of python, matplotlib & wx you're using: I'd point you toward the wxPyWiki page at: http://wiki.wxpython.org/py2exe-python26 which gives a pretty sound example based on

Re: [Matplotlib-users] controllin the background of a plot

2011-07-25 Thread robert rottermann
eb server. The image is displayed with a fat (1.5 cm) gray border which I do not want. thanks for any further intelligence robert here is my code cleansed of irrelevant parts # supporting method creating the plot def makeHlwdChart(self, values = ['a', 'd', 'e', &#

Re: [Matplotlib-users] controllin the background of a plot

2011-07-24 Thread robert rottermann
helps! > Ben Root > > I was barking up the wrong tree.. the picture is saved with imsave correctly (without extra space around it). However I generated it a second time using canvas.tostring_rgb() which I then send to the web server. When I pass a StringIO instance to i

Re: [Matplotlib-users] controllin the background of a plot

2011-07-23 Thread robert rottermann
On 23/07/11 23:17, Benjamin Root wrote: On Sat, Jul 23, 2011 at 2:53 PM, robert rottermann mailto:robert.rotterm...@gmx.ch>> wrote: thanks ben, (sorry for sending answer twice) > When you call savefig(), you can pass it the kwarg option of > bbox_inches='tight

Re: [Matplotlib-users] controllin the background of a plot

2011-07-23 Thread robert rottermann
eb server. The image is displayed with a fat (1.5 cm) gray border which I do not want. thanks for any further intelligence robert here is my code cleansed of irrelevant parts # supporting method creating the plot def makeHlwdChart(self, values = ['a', 'd', 'e', &#

[Matplotlib-users] controllin the background of a plot

2011-07-23 Thread robert rottermann
Hi there, I am creating an image with mathplotlib. This image is then shown an a web page. now ma question. the Image is set in a large gray area. I assume it is the space needed for the axis which I do not show. How can I suppress this gray background? thanks robert here the code I use to

Re: [Matplotlib-users] hot to draw a line connecting a list of points

2011-07-21 Thread robert rottermann
who ever migth be interested: I achieved my goal in drawing lines trough a set of points using the path modul. http://matplotlib.sourceforge.net/users/path_tutorial.html robert On 20.07.2011 20:49, robert rottermann wrote: > hi there, > > I would like to draw a a set of lines on top of

[Matplotlib-users] hot to draw a line connecting a list of points

2011-07-20 Thread robert rottermann
ks for any pointers robert -- 10 Tips for Better Web Security Learn 10 ways to better secure your business today. Topics covered include: Web security, SSL, hacker attacks & Denial of Service (DoS), private keys, security Micr

Re: [Matplotlib-users] plotting using an image as background

2011-07-15 Thread robert rottermann
On 15.07.2011 17:56, Benjamin Root wrote: On Fri, Jul 15, 2011 at 10:49 AM, robert <mailto:rob...@redcor.ch>> wrote: Hi there, I am all new to mathlib world.. What I try to do is plotting some charts over an image. I would be very grateful, if somebody could provid

[Matplotlib-users] plotting using an image as background

2011-07-15 Thread robert
Hi there, I am all new to mathlib world.. What I try to do is plotting some charts over an image. I would be very grateful, if somebody could provide me with an example. thanks robert -- AppSumo Presents a FREE Video for

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 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

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

2011-05-16 Thread Robert Kern
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

[Matplotlib-users] hist doesn't like 2d arrays

2011-02-17 Thread Robert Abiad
Dear Folks, I'm finding that hist has problems computing on 2d arrays. import numpy import pylab mu, sigma = 2, 0.5 v = numpy.random.normal(mu,sigma,16) pylab.hist(v, bins=1000, normed=1) This works without any problems. But if you try this: w=v.reshape(40

[Matplotlib-users] matplotlib on osx problem

2011-02-15 Thread Robert Thompson
e result is the same. Any help you can provide would be greatly appreciated. Thanks! -Robert -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they

Re: [Matplotlib-users] memory usage with repeated imshow

2011-02-09 Thread Robert Abiad
500MB from the OS, but only 150MB from python). There is a chance that ipython is caching your results (try ipython -pylab -cs 0), but when I ran without ipython, python still had a large portion of memory. -robert On 2/9/2011 3:52 PM, Tom Dimiduk wrote: > I am using matplotlib pylab i

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Robert Abiad
On 2/3/2011 10:06 AM, Eric Firing wrote: > On 02/02/2011 10:17 PM, Eric Firing wrote: >> On 02/02/2011 08:38 PM, Robert Abiad wrote: >>> >> [...] >>> I'll put it in as an enhancement, but I'm still unsure if there is a >>> bug in >>>

Re: [Matplotlib-users] Trouble with imshow

2011-02-02 Thread Robert Abiad
On 2/2/2011 6:06 PM, Eric Firing wrote: > On 02/02/2011 03:08 PM, Robert Abiad wrote: >> On 2/2/2011 3:59 PM, Christoph Gohlke wrote: >>> On 2/2/2011 3:33 PM, Robert Abiad wrote: >>>> Hello All, >>>> >>>> I'm very new to python, so be

Re: [Matplotlib-users] Trouble with imshow

2011-02-02 Thread Robert Abiad
On 2/2/2011 3:59 PM, Christoph Gohlke wrote: > On 2/2/2011 3:33 PM, Robert Abiad wrote: >> Hello All, >> >> I'm very new to python, so bear with me. >> >> I'd like to use python to do my image processing, but I'm running into >> behavior that

[Matplotlib-users] Trouble with imshow

2011-02-02 Thread Robert Abiad
lib\colors.py", line 820, in __call__ result = (val-vmin) / (vmax-vmin) File "C:\app\Python2.6\lib\site-packages\numpy\ma\core.py", line 3673, in __div__ return divide(self, other) File "C:\app\Python2.6\lib\site-packages\numpy\ma\core.py", line

Re: [Matplotlib-users] Python 3

2010-12-23 Thread Robert Young
rsday, December 23, 2010 2:47 PM To: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Python 3 On 12/23/2010 1:01 PM, Robert Young wrote: > Hi, I have used Matplotlib extensively now for 2 years with python 2.x. > I recently needed to move to python 3.1 which was greatly

[Matplotlib-users] Python 3

2010-12-23 Thread Robert Young
Hi, I have used Matplotlib extensively now for 2 years with python 2.x. I recently needed to move to python 3.1 which was greatly facilitated by numpy and scipy being ported to python 3. I was lucky in that all I have to change is many print statements. All on a Windows OS. But my progress i

Re: [Matplotlib-users] image conversion

2010-12-17 Thread Robert Field
12:24 AM, Robert Field wrote: >> imagemagick/graphicsmagick aren't able to do the work. I've found something >> else to use in the meantime. > > It would not be off topic to share your sol

Re: [Matplotlib-users] image conversion

2010-12-16 Thread Robert Field
That's what I thought at first too, but imagemagick/graphicsmagick aren't able to do the work. I've found something else to use in the meantime. Thanks, Rob On Dec 16, 2010, at 8:59 PM, Benjamin Root wrote: > On Friday, December 10, 2010, Robert Field wrote: >> Newbie

[Matplotlib-users] image conversion

2010-12-16 Thread Robert Field
Newbie here, and trying to wade through this stuff, and it's not coming too quickly. I'm just trying to take svg data I already have and turn it around into png/pdf/jpg files. Surely this is not terribly difficult. Any help appreciated! -

[Matplotlib-users] pylab

2010-11-26 Thread robert fujii
be highly appreciated. Thank you. Robert * import pylab File "F:\Python26\lib\site-packages\pylab.py", line 1, in from matplotlib.pylab import * File "F:\Python26\lib\site-packages\matplotli

Re: [Matplotlib-users] Possible memory leak?

2010-11-18 Thread Robert Kern
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&

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

2010-10-22 Thread Robert Kern
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

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

2010-10-22 Thread Robert Kern
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

[Matplotlib-users] 3d plot without marker edge

2010-10-15 Thread Robert Fenwick
Hi, I have a 3d plot that I am trying to plot and I can not get rid of the marker edge. an example would help Bryn -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(T

Re: [Matplotlib-users] CMYK images

2010-08-26 Thread Robert Kern
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-

[Matplotlib-users] problem with twinx and autofmt_xdate

2010-07-14 Thread Robert Hancock
matplotlib 1.0.0 it causes a ValueError. The following script illustrates the issue (in real life I obviously want to do things with ax2, but it seems that even creating it causes problems). Is there a simple working example of rotated data formats and twinx()? robert import datetime import

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

2010-07-09 Thread Robert Kern
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

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

2010-07-09 Thread Robert Kern
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

Re: [Matplotlib-users] virtualenv installation: ImportError: No module named _tkagg

2010-06-09 Thread Robert Sudwarts
) to build matplotlib in the virtualenv ... On 9 June 2010 19:06, Robert Sudwarts wrote: > Thanks to both of you for your replies. > > I should have included the info that I've tried to build matplotlib using > virtualenv with the --no-site-packages option. > > .

Re: [Matplotlib-users] virtualenv installation: ImportError: No module named _tkagg

2010-06-09 Thread Robert Sudwarts
stead. I > had to get all the needed development packages and completely clean out my > build directory and rebuild matplotlib before it would work properly. > > Ben Root > > On Wed, Jun 9, 2010 at 9:47 AM, Robert Sudwarts > wrote: > >> Hi, >> >> I've inst

[Matplotlib-users] virtualenv installation: ImportError: No module named _tkagg

2010-06-09 Thread Robert Sudwarts
Hi, I've installed matplotlib in a virtual environment but am having a problem with generating a plot. I've tried to run a "simple_plot.py" both as a script and from within the ipython/python shell. I've changed the backend in virtualenvs/.../lib/python2.6/site-packages/matplotlig/mpl-data/matplo

Re: [Matplotlib-users] easy_install in virtualenv -- error: command 'gcc' failed with exit status 1

2010-06-07 Thread Robert Sudwarts
p in the right place! Thanks for your help. Rob On 8 June 2010 00:15, Robert Sudwarts wrote: > Hi, > > Hoping someone can help with this... I'm trying to install in a virtual > environment created with "--no-site-packages" > I've followed all instruct

[Matplotlib-users] easy_install in virtualenv -- error: command 'gcc' failed with exit status 1

2010-06-07 Thread Robert Sudwarts
Hi, Hoping someone can help with this... I'm trying to install in a virtual environment created with "--no-site-packages" I've followed all instructions re cleaning the existing .matplotlib cache/directory and deleted .egg files etc (virtualenv) ... $ easy_install matplotlib -- gives me an error

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

2010-04-13 Thread Robert Kern
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.

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

2010-04-13 Thread Robert Kern
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

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

2010-04-13 Thread Robert Kern
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

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 w

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

2010-03-11 Thread Robert Kern
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

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

2010-03-09 Thread Robert Kern
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

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

2010-02-16 Thread Robert Kern
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

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

2010-02-15 Thread Robert Kern
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

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

2009-12-07 Thread Robert Kern
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

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). How

Re: [Matplotlib-users] matplotlib with Qt4 backend

2009-11-12 Thread Robert Kern
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

Re: [Matplotlib-users] Circular colormaps

2009-11-09 Thread Robert Kern
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

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

2009-10-12 Thread Robert Kern
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

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

2009-10-12 Thread Robert Kern
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

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

2009-10-12 Thread 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

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

2009-10-12 Thread Robert Kern
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 &

Re: [Matplotlib-users] Images and memory management

2009-10-11 Thread Robert Kern
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

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

2009-10-05 Thread Robert Kern
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."

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 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

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

2009-10-04 Thread Robert Kern
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

Re: [Matplotlib-users] incorrect boxplot?

2009-09-14 Thread Robert Kern
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 >

Re: [Matplotlib-users] incorrect boxplot?

2009-09-14 Thread Robert Kern
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.

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

2009-07-22 Thread Robert Kern
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

Re: [Matplotlib-users] invisible plot

2009-07-15 Thread Robert Kern
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

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. W

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

2009-07-14 Thread Robert Cimrman
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 as the numb

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

2009-07-14 Thread Robert Kern
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 as the number of points to interpolate > to

[Matplotlib-users] speeding-up griddata()

2009-07-13 Thread Robert Cimrman
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 as the number of points to interpolate to increases. The dependence of time/(number of points) is nonlinear (see the

Re: [Matplotlib-users] plot a triangular mesh

2009-05-26 Thread Robert Kern
On 2009-05-23 21:35, Eric Carlson wrote: > Hello Robert, > I studied delaunay and mlab.griddata a bit while converting tinterp and > saw the > > """ > tri = delaunay.Triangulation(x,y) > # interpolate data > interp = tri.nn_int

Re: [Matplotlib-users] plot a triangular mesh

2009-05-25 Thread Robert Cimrman
Ondrej Certik wrote: > On Fri, May 22, 2009 at 3:37 PM, Ondrej Certik wrote: >> Thanks a lot John. I tried that and it does what I want. I just need >> to convert and probably average my 3 different values at the 3 >> vertices of the triangle and color the triangle with that color. When >> I get i

Re: [Matplotlib-users] plot a triangular mesh

2009-05-23 Thread Robert Kern
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

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Robert Cimrman
Ryan May wrote: > On Thu, May 7, 2009 at 12:39 PM, Eric Firing wrote: > >> In case you are not receiving the automatic svn commit messages: yesterday >> I took the liberty of renaming log.py to multiprocess.py, because as far as >> I could see the former gave no clue as to the point of the exampl

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-07 Thread Robert Cimrman
Ryan May wrote: On Wed, May 6, 2009 at 8:53 AM, Robert Cimrman wrote: Ryan May wrote: On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman wrote: Just for the record: Ryan May's example in this thread, that uses pipes, inspired me to try pipes as well, instead of queues (multiprocessing

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Robert Cimrman
william ratcliff wrote: I'd like to see it ;> Here you are... r. import time from multiprocessing import Process, Pipe from Queue import Empty import numpy as np import pylab import gobject class ProcessPlotter(object): def __init__(self): self.x = [] self.y = [] def

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Robert Cimrman
Ryan May wrote: > On Wed, May 6, 2009 at 7:57 AM, Robert Cimrman wrote: >> >> Just for the record: Ryan May's example in this thread, that uses pipes, >> inspired me to try pipes as well, instead of queues >> (multiprocessing.Pipe instead of Queue) and the "

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-05-06 Thread Robert Cimrman
Robert Cimrman wrote: > Hi Ryan, > > Ryan May wrote: >> On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: >> >>> Ryan May wrote: >>>> Try this: >>>> >>>> >>> http://matplotlib.sourceforge.net/examples/animation/simple_anim_

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Ryan May wrote: > On Fri, Apr 24, 2009 at 5:52 AM, Esmail wrote: > >> Ryan May wrote: >>> Any idea if it's possible to finish a Python program but still have >> the >>> graph showing? >>> >>> FWIW, I'm doing this under Linux. >>> >>> >>> You'd have to run the plotting in a separate pr

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Esmail wrote: > Robert Cimrman wrote: >> This is exactly what I have tried/described in [1], using the >> multiprocessing module. It sort of works, but I have that hanging >> problem at the end - maybe somebody jumps in and helps this time :) >> >> r. >>

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-24 Thread Robert Cimrman
Hi Ryan, Ryan May wrote: > On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: > >> Ryan May wrote: >>> Try this: >>> >>> >> http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html >>> (If not gtk, there are other examples there.) >> Thanks Ryan, that'll give me some idea with regar

[Matplotlib-users] plotting in a separate process

2009-03-31 Thread Robert Cimrman
Hi all! I have a long running (non-GUI) python application, that needs to plot some curves and update them in time, as new data are computed. I'm well aware of ezplot, but would like to use a matplotlib-multiprocessing-only solution, as I have already enough dependencies. The best thing I have

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

2009-02-10 Thread Robert Kern
On 2009-02-10 16:50, Gustavo Blando wrote: > Awesome Robert, thanks. > Here is the Python path. > > C:\Python25\Lib\site-packages\numpy;C:\Python25\Lib\site-packages\matplotlib;C:\Python25\Lib\site-packages\scipy;C:\Python25\Lib\site-packages\pyreadline;C:\Python25\Lib\site-package

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

2009-02-10 Thread Robert Kern
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

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

2008-11-18 Thread Robert Kern
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

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

2008-11-18 Thread Robert Kern
Jeff Mangum wrote: > Thanks Robert. I grabbed setuptools and reinstalled. Unfortunately, even > though I am using the right version of easy_install... > > torgo:Desktop jmangum$ which easy_install > /Library/Frameworks/Python.framework/Versions/Current/bin/easy_install > &g

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

2008-11-18 Thread Robert Kern
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

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

2008-11-17 Thread Robert Kern
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

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

2008-09-25 Thread Robert Kern
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

[Matplotlib-users] installation

2008-09-19 Thread Robert Fenwick
Hi, I would really like to use matplot lib, however I am having big problems as I try to do this on OSX 10.5. if there is someone how could give a detailed explination of how to get rid of the preinstalled python that is apparently rubbish and then how to install a new python version that would re

Re: [Matplotlib-users] findobj in pylab

2008-07-07 Thread Robert Cimrman
Eric Firing wrote: > Robert Cimrman wrote: >> Eric Firing wrote: >>> I'm not sure if this is addressing your situation, but the simplest >>> way to adjust all font sizes is to use the rcParams dictionary, >>> either directly or via the matplotlibrc

Re: [Matplotlib-users] findobj in pylab

2008-07-04 Thread Robert Cimrman
Eric Firing wrote: > I'm not sure if this is addressing your situation, but the simplest way > to adjust all font sizes is to use the rcParams dictionary, either > directly or via the matplotlibrc file. If the default font sizes for > various items are specified using "medium", "large", etc, in

Re: [Matplotlib-users] findobj in pylab

2008-07-04 Thread Robert Cimrman
John Hunter wrote: > On Thu, Jul 3, 2008 at 8:42 AM, John Kitchin <[EMAIL PROTECTED]> wrote: >> Thanks Matthias. That is a helpful example. >> >> I have been trying to figure out how to recursively examine all the objects >> in fig to see if there is a particular settable property. It seems like th

[Matplotlib-users] Plotting data in real time

2008-05-23 Thread Robert Garrett
Hi, I'd like to use Python to plot data in real-time. I've created a GUI using wxPython and have embedded a Matplotlib graph into a pane. My problem is that I don't know the best way to update the graph. What's the recommended method for this? The data comes from a peripheral device connected t

Re: [Matplotlib-users] Kriging with Matplotlib

2008-05-16 Thread Robert Kern
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

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

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

2008-04-01 Thread Robert Kern
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

Re: [Matplotlib-users] Bogus colour gradients in imshow()

2008-03-17 Thread Robert Kern
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

Re: [Matplotlib-users] atomic line.set_xdata and set_ydata

2008-01-29 Thread Robert Cimrman
John Hunter wrote: > On Jan 29, 2008 8:33 AM, Robert Cimrman <[EMAIL PROTECTED]> wrote: >> Is there a way of simultaneously setting both xdata and ydata of a line? >> I need to animate a line with varying number of points in each frame. > > line.set_data(xdata, ydata) &

[Matplotlib-users] atomic line.set_xdata and set_ydata

2008-01-29 Thread Robert Cimrman
Is there a way of simultaneously setting both xdata and ydata of a line? I need to animate a line with varying number of points in each frame. regards, r. - This SF.net email is sponsored by: Microsoft Defy all challenges.

  1   2   >