[Matplotlib-users] Possible problem with mpl.axes.Axes.add_collection()

2009-07-23 Thread jorgesmbox-ml
Hi, I have a strange problem. It seems to me it is related to mpl.axes.Axes.add_collection(), but I am too lost to be sure. I have a script for visualizing certain aspects of images, built upon many bits and pieces I found on the matplotlib example section. It basically lets me view an image fr

[Matplotlib-users] Question about imshow

2009-05-16 Thread jorgesmbox-ml
Hi, I want to read images and do some processing with them. While learning how to do this, i.e. opening images, displaying them, transforming them tu numpy arrays, etc., I came across a strange behaviour. If I open an image and use imshow() to display it, it comes upside down. See this thread i

[Matplotlib-users] Picking and events question

2009-05-25 Thread jorgesmbox-ml
Hi, I am trying to use matplotlib to visually explore some data. I started from the "event_handling example code: data_browser.py" example, but wanted to go a bit further. The idea is to have two plots and an image linked together. The first plot represents a measure calculated from an image regi

Re: [Matplotlib-users] Picking and events question

2009-05-25 Thread jorgesmbox-ml
> It looks like you found a pretty significant bug -- the Artist.pick > method forwards the event to all of it's children, whether or not the > pick event happened in the same Axes as the event being queried. Not > only is this inefficient, it can create false positives when the two > axes share

[Matplotlib-users] Open file dialog?

2009-06-04 Thread jorgesmbox-ml
Hi, I am working on scripts using numpy, scipy and matplotlib to analyze some image data. I would like to be able to select the particular image I want to analyze, so I need a file selection dialog or similar. I know this can be done with any gui toolkit, but I was wondering if there isn't an e

[Matplotlib-users] Newbie question

2009-06-05 Thread jorgesmbox-ml
Hi, The matplotlib.collections.Collection documentation reads: "All properties in a collection must be sequences or scalars; if scalars, they will be converted to sequences. The property of the ith element of the collection is: prop[i % len(props)]". I had a look at the docstring documentation

Re: [Matplotlib-users] Newbie question

2009-06-12 Thread jorgesmbox-ml
- Mensaje original > De: Eric Firing > > import matplotlib.cbook as cbook > > def to_sequence(arg): > if cbook.is_iterable(arg): > return arg > return [arg] > > Above is an example of how one can turn a scalar into a sequence (a list, in > this case) if necessary.