[Matplotlib-users] Contouring

2007-11-30 Thread José Gómez-Dans
Hi, I have written a quick'n'dirty image segmentation algorithm. It seems to work fine. However, I am interested in getting contours of the segments (essentially, (x,y) pairs of the edges of each segment). I can plot the contours with MPL (pylab.contour()), but I'd like to have the locations of

[Matplotlib-users] Matplotlib very slow

2007-12-03 Thread José Gómez-Dans
Hi, I have compiled v.0.90.1 on RHEL 5. By default, the GTKAgg backend is being used (TkAgg cannot be set, as TkInter is not installed on the system, I think. It throws a NO Module named Tkinter error). At any rate, a test session is as follows: import pylab pylab.plot ( [1,2,3],[1,2,3],'-or')

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
John, On Tuesday 04 December 2007 03:25:15 John Hunter wrote: On Dec 3, 2007 9:08 AM, José Gómez-Dans [EMAIL PROTECTED] wrote: I have compiled v.0.90.1 on RHEL 5. By default, the GTKAgg backend is being used (TkAgg cannot be set, as TkInter is not installed on the system, I think

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
John, On Tuesday 04 December 2007 14:07:36 you wrote: Two more tests. WIll you set the debug level to --verbose-debug-annoying and add a savefig command to your script, eg savefig('myfig') with no extension (the backend will provide a default extension with the -d flags below). Try running

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
On Tuesday 04 December 2007 15:31:04 John Hunter wrote: What about these scripts # just make a figure from pylab import * figure() Takes a long time. # just make a subplot from pylab import * subplot(111) Takes a long time. I'm trying to narrow down where the problem is occurring and

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
On Tuesday 04 December 2007 15:54:17 you wrote: OK, it is in the gtk figure creation code. Get the matplotlib examples directory and try running examples/embedding_in_gtk.py which does not use pylab but instead does all the gtk stuff manually. See if you can reproduce the error. If so,

Re: [Matplotlib-users] Matplotlib very slow

2007-12-04 Thread José Gómez-Dans
On Tuesday 04 December 2007 16:05:33 John Hunter wrote: On Dec 4, 2007 10:00 AM, José Gómez-Dans [EMAIL PROTECTED] wrote: Interestingly enough, the embedding_in_gtk.py script works perfectly (takes less than a second to run), so I am not able to reproduce the slowness! Hmm, the plot

Re: [Matplotlib-users] Matplotlib very slow

2007-12-05 Thread José Gómez-Dans
On Tuesday 04 December 2007 16:16:06 José Gómez-Dans wrote: On Tuesday 04 December 2007 16:05:33 John Hunter wrote: On Dec 4, 2007 10:00 AM, José Gómez-Dans [EMAIL PROTECTED] wrote: Hmm, the plot thickens. How about embedding_in_gtk2.py -- this add the toolbar This does indeed slow

Re: [Matplotlib-users] Cross hair and polygon drawing tools.

2007-12-07 Thread José Gómez-Dans
Hi, On Thursday 06 December 2007 19:39:59 Venkat Ramanan wrote: I'm looking for something analogous to Matlab's ginput() and roipoly(). I'm no expert on this, but have a look at the lasso_demo.py example, which shows something akin to roipoly(), and pick_event_demo.py and pick_even_demo2.py,

[Matplotlib-users] Random colourmap?

2008-02-13 Thread José Gómez-Dans
Hi, Is there a simple way to come up with a random colourmap? I need to plot discrete values, and I would like that the colours do not show a trend, to easily distinguish them? I read the cookbook entry on Doing your own colormap, but can't seem to bring my mind into it! Cheers! Jose

[Matplotlib-users] Best installation procedure for MacOSX

2008-02-15 Thread José Gómez-Dans
Hi! Some colleagues are starting to use python, matplotlib et al. for data analysis and so on. However, they are using MacOSX computers, and neither of us are particularly proficient in the use of OSX. I would like to know if there's an easy way to install ipython, numpy, scipy and matplotlib

Re: [Matplotlib-users] Polygon masking possible?

2008-03-14 Thread José Gómez-Dans
On Friday 14 March 2008 16:44:54 Chiara Caronna wrote: I tried ds9 and It looks like this is what I would like to do (though I couldn't try funtools, but what you describe is good). DO you think it is possible to make something like this with matplotlib? Thanks a lot for your The initiating