Skip to content

Commit e9fcc08

Browse files
committed
More informative error message when data is too large for Agg to draw it.
svn path=/trunk/matplotlib/; revision=6172
1 parent 8caeeae commit e9fcc08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

agg24/include/agg_rasterizer_cells_aa.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ namespace agg
185185
if((m_num_cells & cell_block_mask) == 0)
186186
{
187187
if(m_num_blocks >= cell_block_limit) {
188-
throw "Agg rendering complexity exceeded.";
188+
/* If this exception is thrown too often, one can
189+
increase cell_block_limit */
190+
throw "Agg rendering complexity exceeded. "
191+
"Consider downsampling or decimating your data.";
189192
}
190193
allocate_block();
191194
}

0 commit comments

Comments
 (0)