ordinal must be >= 1 Error

Hello all,

I am using matplotlib for a web application to create trend charts from measurements stored in a database.
Specifically I use plot_date to plot the values vs their timestamps.
Occasionally and without any obvious to me reason, plot_date raises the exception

"ordinal must be >= 1"

I check that both the x and y value sequences are not empty and their length is certainly above 1.
Does anybody know where this "ordinal" refers to and what might be causing this error?
Thank you very much

        Panos

Panos,
Ordinal in this context is the y values. It's not the length of the y array, it's the values in the array. Dates are days past some epoch and dates before the epoch are not allowed. Maybe you're getting a date value that's < 1 which is what is causing the problem. Are you plotting dates on the y axis anywhere?

Or maybe there's a bug in the error message and it should say abscissa (X)?

Ted

···

At 01:44 AM 1/31/2006, Panos Kassianidis wrote:

Hello all,

I am using matplotlib for a web application to create trend charts from measurements stored in a database.
Specifically I use plot_date to plot the values vs their timestamps.
Occasionally and without any obvious to me reason, plot_date raises the exception

"ordinal must be >= 1"

I check that both the x and y value sequences are not empty and their length is certainly above 1.
Does anybody know where this "ordinal" refers to and what might be causing this error?
Thank you very much

                                Panos

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users