Re: [Matplotlib-users] unable to plot multiple lines with plot?

2009-07-14 Thread Jeff Whitaker
per freem wrote: > hi all, > > i'm getting very strange behavior from the matplotlib 'plot' function > when attempting to plot multiple lines. i have a series of x, y data > points that are being generated in a loop and i want to simply plot > each of them on the same plot. my code is: > > impor

[Matplotlib-users] unable to plot multiple lines with plot?

2009-07-14 Thread per freem
hi all, i'm getting very strange behavior from the matplotlib 'plot' function when attempting to plot multiple lines. i have a series of x, y data points that are being generated in a loop and i want to simply plot each of them on the same plot. my code is: import matplotlib matplotlib.use('PDF')

Re: [Matplotlib-users] matplotlib-0.98.5.3.win32-py2.6.exe (Stephen George)

2009-07-14 Thread Stephen George
Hi Jon, To clarify, I think you need to read Christoph Gohlke original message (7/7/2009) to me to put my response into context: > Hi Steve, > > matplotlib-0.98.5.3.win32-py2.6.exe was compiled without support for GTK. > > If you don't mind trying, I have a build of the matplotlib trunk > availa

[Matplotlib-users] The vertical part of y error bars. Where are they?

2009-07-14 Thread Jack Sankey
Hello, I'm writing a script that removes data from plots by looping over axes.get_lines(), removing data, then using axes.set_lines(). It works quite well, but when it's a plot with error bars, the vertical part of the error bar is not disappearing. I'm assuming the vertical part is a vline or som

Re: [Matplotlib-users] question about setting colors of lines using colormap

2009-07-14 Thread Tony S Yu
On Jul 14, 2009, at 3:12 PM, per freem wrote: Hi Tony, thanks for the pointer. that code does not run for me, it generates the following error: ttributeErrorTraceback (most recent call last) /Library/Python/2.5/site-packages/matplotlib/rcsetup.pyc i

Re: [Matplotlib-users] question about setting colors of lines using colormap

2009-07-14 Thread per freem
Hi Tony, thanks for the pointer. that code does not run for me, it generates the following error: ttributeErrorTraceback (most recent call last) color_cycle.py in () 63 if __name__ == '__main__': 64 n_lines = 10 ---> 65 cycle_cmap(length=n_lines)

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. While the method works >>> well, it slows down conside

[Matplotlib-users] plot a line with an arrow

2009-07-14 Thread Afi Welbeck
Hi all, I'm a newbie, I'm trying to plot a line with an arrow (arrow in the middle and another with an arrow at the end) with the following points: [1, 2] and [5, 2] Could anyone please help me with the code? Thanks. Harriet A. Welbeck

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 number of points to interpolate >> to

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 increases. > > The dependen

Re: [Matplotlib-users] matplotlib-0.98.5.3.win32-py2.6.exe (Stephen George)

2009-07-14 Thread Jon Roadley-Battin
Question is however, are you using the GTK backend? ie from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas from matplotlib.backends.backend_gtkagg import NavigationToolbar2GTKAgg as NavigationToolbar backend_gtkagg then imports matplotlib.backends._gtkagg For matplot

Re: [Matplotlib-users] matplotlib breaks: ValueError: ordinal must be >= 1 from matplotlib/dates.py", line 170, in _from_ordinalf

2009-07-14 Thread Jae-Joon Lee
Please post a standalone example that reproduces your problem. I tried your example with some junk data but no such exception is raised. However, there has been a report of a similar ordinal value problem which I think is not fixed yet, but that problem only occurs when two and more axes are share

Re: [Matplotlib-users] question about setting colors of lines using colormap

2009-07-14 Thread Tony S Yu
Not too long ago, I posted an example of this to the list. The code near the bottom of that thread is a little more general than the one at the top and shows, three different ways to cycle through the colors of a colormap. Hope that helps, -Tony On Jul 14, 2009, at 9:51 AM, per freem wrot

[Matplotlib-users] question about setting colors of lines using colormap

2009-07-14 Thread per freem
Hi all, i would like to set the colors of the lines i plot (using the plot function) to go from red to blue, in evenly spaced interval. that is, imagine a color map from red to green, where i plot n-many lines, each receiving a color from this color map, starting at the red end and going to green.

[Matplotlib-users] matplotlib breaks: ValueError: ordinal must be >= 1 from matplotlib/dates.py", line 170, in _from_ordinalf

2009-07-14 Thread M Osborne
I am trying to plot some historical trend data, where x is a date and y is a percentage. When I try to insert a horizontal line with ax1.axhline(y=80, linewidth=1, color='r'), matplotlib breaks, with an error " ValueError: ordinal must be >= 1". The Traceback most recent call is, File "/usr/lib6