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
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
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
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
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
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 dependence of
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 increases.
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
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 considerably as the
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 module()
63 if __name__ == '__main__':
64 n_lines = 10
--- 65
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
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
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
available
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
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:
import
15 matches
Mail list logo