John Hunter wrote: > On Wed, Oct 8, 2008 at 11:37 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > > >> I figured this out. When this happens, a RuntimeError("Agg rendering >> complexity exceeded") is thrown. >> > > Do you think it is a good idea to put a little helper note in the > exception along the lines of > > throw "Agg rendering complexity exceeded; you may want to increase > the cell_block_size in agg_rasterizer_cells_aa.h" > > in case someone gets this exception two years from now and none of us > can remember this brilliant fix :-) > We can suggest that, or suggest that the size of the data is too large (which is easier for most users to fix, I would suspect). What about:
"Agg rendering complexity exceeded. Consider downsampling or decimating your data." along with a comment (not thrown), saying /* If this is thrown too often, increase cell_block_limit. */ 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-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel