Alex Stapleton wrote: > 2008/7/16 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Alex Stapleton wrote: >> >> Alex: I don't have the Cairo backend installed, but I bet it would work if >> you changed resolution='i' to resolution='l'. Seems like a pretty severe >> limitation of the backend though. >> > I suppose it's not up to matplotlib to work around silly limits in > Cairo :) Slightly OT -- I put the check for the length of the path in there because otherwise pycairo/cairo segfaults, and I thought an exception would be preferable to a segfault. That limit was obtained through experimentation, and might not be accurate (I couldn't actually find a hard limit in the cairo code, it's more likely due to an interaction of multiple parts of the code). This was all true with Cairo 1.4.10/pycairo 1.4.0. With other versions this may not be the case, but my "catch" happens regardless. We may want to revisit that if we discover that newer versions of Cairo can handle longer paths.
Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- 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=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users