[Matplotlib-users] plotting durations

2009-01-27 Thread C M
I don't think there is a built-in way to do this, but I thought I'd check first. Can matplotlib (somehow) directly plot a duration of time, such as in the form: 0:01:39.983001 (h:m:s:microsec) Thanks, Che -- This SF.net

Re: [Matplotlib-users] contour coordinates

2009-01-27 Thread Patrick Marsh
On Tue, Jan 27, 2009 at 7:16 PM, Eli Brosh wrote: > Many thanks to Jeff and to Patric ! > I will try to work along the line suggested by Jeff. > Patric, please send me your code. > I hope to learn from it. > > Thanks again, > Eli Here is a template that can be used. I use this for meteorologica

Re: [Matplotlib-users] Drawing Splines

2009-01-27 Thread John Hunter
On Tue, Jan 27, 2009 at 12:44 PM, Mostafa Razavi wrote: > At http://www.scipy.org/Cookbook/Matplotlib/SigmoidalFunctions I read > that matplotlib supports drawing arbitrary paths with splines, but the > functionality hasn't been exposed to the user. Can anyone tell me how I > can use this function

[Matplotlib-users] Change Hue-Range in HSV color map

2009-01-27 Thread KarlBlau
Hi, I would like to change the hue range of the hsv color map to use only hue values between 0 and 0.6667. I checked the documentation of matplotlib and searched in the internet but couldn't find the answer. Best regards, KB -- View this message in context: http://www.nabble.com/Change-Hue-Ran

[Matplotlib-users] Drawing Splines

2009-01-27 Thread Mostafa Razavi
At http://www.scipy.org/Cookbook/Matplotlib/SigmoidalFunctions I read that matplotlib supports drawing arbitrary paths with splines, but the functionality hasn't been exposed to the user. Can anyone tell me how I can use this functionality? I tried searching the source code for "spline," but I

Re: [Matplotlib-users] contour coordinates

2009-01-27 Thread Eli Brosh
Many thanks to Jeff and to Patric ! I will try to work along the line suggested by Jeff. Patric, please send me your code. I hope to learn from it. Thanks again, Eli On Tue, Jan 27, 2009 at 7:09 PM, Patrick Marsh wrote: > On Tue, Jan 27, 2009 at 5:33 PM, Jeff Whitaker wrote: > > Eli Brosh wro

Re: [Matplotlib-users] contour coordinates

2009-01-27 Thread Patrick Marsh
On Tue, Jan 27, 2009 at 5:33 PM, Jeff Whitaker wrote: > Eli Brosh wrote: >> Hello, >> I am trying to extract the coordinates of contour lines. >> I tried the following: >> >> cs = *contour*(Z) >> for lev, col in zip(cs.levels, cs.collections): >> s = col._segments >> >> that I found in a prev

Re: [Matplotlib-users] contour coordinates

2009-01-27 Thread Jeff Whitaker
Eli Brosh wrote: > Hello, > I am trying to extract the coordinates of contour lines. > I tried the following: > > cs = *contour*(Z) > for lev, col in zip(cs.levels, cs.collections): > s = col._segments > > that I found in a previous post (title "contouring", by Jose > Gómez-Dans-2

[Matplotlib-users] contour coordinates

2009-01-27 Thread Eli Brosh
Hello, I am trying to extract the coordinates of contour lines. I tried the following: cs = *contour*(Z) for lev, col in zip(cs.levels, cs.collections): s = col._segments that I found in a previous post (title "contouring", by Jose Gómez-Dans-2

Re: [Matplotlib-users] Running matplotlib

2009-01-27 Thread Peter Bloomfield
> The problem I have is then when I issue the following > > >>> from pylab import * > > Traceback (most recent call last): > File "", line 1, in > File "/usr/local/lib/python2.6/site-packages/pylab.py", line 1, in > File "/usr/local/lib/python2.6/site-packages/matplotlib/pylab.py", > line 206

Re: [Matplotlib-users] unfilled markers?

2009-01-27 Thread Gary Ruben
It just occurred to me that another option might be to simply add a new colour option "line" for mec and mfc which would instruct them to pick up the current line colour. Gary -- This SF.net email is sponsored by: Sourc

Re: [Matplotlib-users] unfilled markers?

2009-01-27 Thread Eric Firing
Norbert Nemec wrote: > Before my work in 2004, the colors were not following the line color at > all, which was clearly bad behavior. > > Now, there are two categories: filled markers (with edge color black and > filling following the line color) and non-filled markers (with edge > color follow

[Matplotlib-users] Running matplotlib

2009-01-27 Thread Peter Bloomfield
Dear All, I apologise if this is naive, but I am having problems with matplotlib. I downloaded it as a tar ball from SourceForge and it all compiled and installed without any error. I have the following setup. Download source SourceForge - matplotlib-0.98.5.2.tar.gz OS OpenSUSE

[Matplotlib-users] zeros on log scatter plot

2009-01-27 Thread Uri Laserson
Hi, I am creating a scatter plot of some data that spans many orders of magnitude, and so I am changing the axes using gca().set_xscale('log') gca().set_yscale('log') Clearly, this only shows non-zero data. Is there an easy way to also include data has zero values for coordinates (say one tick m

Re: [Matplotlib-users] bug with installation from KUBUNTU aptitude

2009-01-27 Thread Christopher Barker
massimo sandal wrote: > Dmitrey ha scritto: >> hi matplotlib developers and users, >> after installation, it yields >> >> ImportError: No module named _tkinter, please install the python-tk package > all complex packages have dependencies. > It just seems Kubuntu missed one. Maybe, Maybe not --

Re: [Matplotlib-users] setting line parameters like color, lw, etc

2009-01-27 Thread Fabrice Silva
Le mardi 27 janvier 2009 à 13:17 +0100, Marcin Krol a écrit : > How do I set the attributes of Line2D instance? I have: > > origline = plt.plot(origlist) > valine = plt.plot(valist) > plt.xlim(0,256) > valine.set_color('r') > valine.set_linewidth(2) > > Traceback (mo

Re: [Matplotlib-users] Tutorial on working with Excel files in Python(without COM and cross platform!) at PyConUS 2009

2009-01-27 Thread Chris Withers
Derek Hohls wrote: > I hope I speak for others when I say: for those of us who cannot > be at PyCon, please consider making tutorials etc available for > download afterwards. We'd love to be able to spread the good > word about these excellent libraries. Keep an eye out on the PyConUS website af

Re: [Matplotlib-users] legend for plots with points

2009-01-27 Thread mfabulous
mfabulous wrote: > Hi all, > > I apologize if this was asked before. I just started adding legends to my > plots > and found the legend stile for a point-plot, i.e. a plot using points > rather > than > lines to be a bit confusing. > > Example: > pylab.plot(arange(5), arange(5), 'o', label=

Re: [Matplotlib-users] legend for plots with points

2009-01-27 Thread Eric Firing
mfabulous wrote: > Hi all, > > I apologize if this was asked before. I just started adding legends to my > plots > and found the legend stile for a point-plot, i.e. a plot using points rather > than > lines to be a bit confusing. > > Example: > pylab.plot(arange(5), arange(5), 'o', label="foo"

Re: [Matplotlib-users] unfilled markers?

2009-01-27 Thread Gary Ruben
Hi Norbert, Both of your proposals (b) and (c) sound better to me than the current behaviour, although they don't sound as obvious to me as simply defaulting to always setting the mec to the line colour unless overridden using mec="k" - you could label this proposal (d). Since others seem to h

Re: [Matplotlib-users] building from source on Windows

2009-01-27 Thread Patrick Marsh
I figured out why your show() works...you had WxPython installed and I'm assuming your backend was defaulting to this since Tkinter wasn't found. Once I noticed that I installed WxPython and then re-buily matplotlib with WxPython. If I used wxpython as my backend, then my GUIs worked. I can impo

Re: [Matplotlib-users] Fwd: Event handling

2009-01-27 Thread John Hunter
On Tue, Jan 27, 2009 at 9:27 AM, Nils Wagner wrote: >> If you want to only return a single point, you can write >>a custom >> picker function to return only the point closest to the >>click point. >> > > Unfortunately, I am not sure how to implement a custom > picker function. > > Any pointer wou

Re: [Matplotlib-users] Fwd: Event handling

2009-01-27 Thread Nils Wagner
On Tue, 27 Jan 2009 08:57:17 -0600 John Hunter wrote: > On Tue, Jan 27, 2009 at 8:18 AM, Nils Wagner > wrote: >>> Thank you very much for your response. >>> The horizontal distance between consecutive points is >>> 5. in my application. >>> >>> Is the value of picker linked to the distance ? >>

Re: [Matplotlib-users] building from source on Windows

2009-01-27 Thread Marcin Krol
John Hunter wrote: > First of all, on the clean build, when you do > > import matplotlib._path > > do you still get the same error. No, it's working fine on the new build (the import above and the whole installation0 -- once I switched to VC++ from MinGW. Regards, mk

Re: [Matplotlib-users] building from source on Windows

2009-01-27 Thread John Hunter
On Tue, Jan 27, 2009 at 7:09 AM, Marcin Krol wrote: > John Hunter wrote: >> It might help if you recursively remove the buld directory, do a clean >> rebuld, capture the build output in a file, and post that here so we >> can see if we can get an idea what is going on > > Since it's over 250kB, I

Re: [Matplotlib-users] Fwd: Event handling

2009-01-27 Thread John Hunter
On Tue, Jan 27, 2009 at 8:18 AM, Nils Wagner wrote: >> Thank you very much for your response. >> The horizontal distance between consecutive points is >> 5. in my application. >> >> Is the value of picker linked to the distance ? >> I mean >> How should I use picker to circumvent multiple results

[Matplotlib-users] Fwd: Event handling

2009-01-27 Thread Nils Wagner
--- Begin Message --- Please respond on list and I, or someone else, will try and respond. On Tue, Jan 27, 2009 at 7:08 AM, Nils Wagner wrote: > On Tue, 27 Jan 2009 06:37:09 -0600 > John Hunter wrote: >> >> On Tue, Jan 27, 2009 at 2:15 AM, Nils Wagner >> wrote: >>> >>> Hi all, >>> >>> Is it po

Re: [Matplotlib-users] Event handling

2009-01-27 Thread John Hunter
On Tue, Jan 27, 2009 at 2:15 AM, Nils Wagner wrote: > Hi all, > > Is it possible to restrict the mouse movements to the points of a graph > (curve tracking) ? No, but you can obtain the vertices of the line that are within a tolerance of the clicked point using the picking functions. See the tu

Re: [Matplotlib-users] building from source on Windows

2009-01-27 Thread John Hunter
On Tue, Jan 27, 2009 at 4:31 AM, Marcin Krol wrote: > Hello Patrick, > > Thanks for reply! > >> I didn't catch on the first email you were trying to build for >> python2.6. I haven't been able to get matplotlib to build correctly >> with python2.6. I'm actually curious as to how you were able to

[Matplotlib-users] setting line parameters like color, lw, etc

2009-01-27 Thread Marcin Krol
Hello everyone, Newbie alert. How do I set the attributes of Line2D instance? I have: origline = plt.plot(origlist) valine = plt.plot(valist) plt.xlim(0,256) valine.set_color('r') valine.set_linewidth(2) I get: Traceback (most recent call last): File

[Matplotlib-users] setting line parameters like color, lw, etc

2009-01-27 Thread Marcin Krol
Hello everyone, Got it now, plot() apparently returns a list and I have to unpack it, I feel silly now... Regards, mk -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. htt

Re: [Matplotlib-users] building from source on Windows

2009-01-27 Thread Marcin Krol
John Hunter wrote: > It might help if you recursively remove the buld directory, do a clean > rebuld, capture the build output in a file, and post that here so we > can see if we can get an idea what is going on Since it's over 250kB, I pasted it here: http://pastebin.com/f466bd0db Regards, mk

Re: [Matplotlib-users] bug with installation from KUBUNTU aptitude

2009-01-27 Thread massimo sandal
Dmitrey ha scritto: > hi matplotlib developers and users, > let me inform you about the bug: > when I use > sudo aptitude install python-matplotlib > it downloads LOTS of auxilary packages (IIRC about 200 MB for download > and 400 MB for HDD after unpack, or kind of), still it doesn't work > afte

[Matplotlib-users] RuntimeError: maximum recursion depth exceeded while calling a Python object

2009-01-27 Thread Marcin Krol
Hello everyone, Forget it, I was mistakenly passing a list of dictionaries to the pyplot function instead of passing a list of extracted values. Regards, mk -- This SF.net email is sponsored by: SourcForge Community S

Re: [Matplotlib-users] unfilled markers?

2009-01-27 Thread Norbert Nemec
Before my work in 2004, the colors were not following the line color at all, which was clearly bad behavior. Now, there are two categories: filled markers (with edge color black and filling following the line color) and non-filled markers (with edge color following line color). The black edge

[Matplotlib-users] RuntimeError: maximum recursion depth exceeded while calling a Python object

2009-01-27 Thread Marcin Krol
Hello everyone, It's fine when I plot in interactive Python shell like so: import matplotlib.pyplot as plt plt.plot(valist) plt.show() However, I get an exception like in subject when I call it from function: def plotit(origlist, valist): plt.plot(origlist) plt.plot(valist)

Re: [Matplotlib-users] building from source on Windows

2009-01-27 Thread Marcin Krol
Hello Patrick, Thanks for reply! > I didn't catch on the first email you were trying to build for > python2.6. I haven't been able to get matplotlib to build correctly > with python2.6. I'm actually curious as to how you were able to build > matplotlib using the win32_static folder since it doe

[Matplotlib-users] bug with installation from KUBUNTU aptitude

2009-01-27 Thread Dmitrey
hi matplotlib developers and users, let me inform you about the bug: when I use sudo aptitude install python-matplotlib it downloads LOTS of auxilary packages (IIRC about 200 MB for download and 400 MB for HDD after unpack, or kind of), still it doesn't work after installation, it yields ImportE

[Matplotlib-users] Event handling

2009-01-27 Thread Nils Wagner
Hi all, Is it possible to restrict the mouse movements to the points of a graph (curve tracking) ? So far I am able to obtain the location of the mouse in data coordinates if the mouse is over an axes. A code snippet is attached. Thanks in advance. Nils from