---------- Forwarded message ---------- From: William Henney <[EMAIL PROTECTED]> Date: Thu, Sep 18, 2008 at 9:58 AM Subject: Re: [PyX-user] Zero data error To: ruben <[EMAIL PROTECTED]>
Hi Ruben On Thu, Sep 18, 2008 at 9:46 AM, ruben <[EMAIL PROTECTED]> wrote: > Hi, I just started using pyx. My problem is that I get an error when all > data values are 0. How can i draw a graph that can have all values = 0 ? When all the data values are zero, PyX fails in trying to automatically choose reasonable values for the limits on the y-axis. I'd say that was arguably a bug, but you can work around it by setting the limits explicitly yourself, like this: g = graph.graphxy(width=8, y=graph.axis.linear(min=-1, max=2)) Cheers Will -- Dr William Henney, Centro de Radioastronomía y Astrofísica, Universidad Nacional Autónoma de México, Campus Morelia ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
