Thanks to visit codestin.com
Credit goes to github.com

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

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

agg24/include/agg_rasterizer_cells_aa.h

Lines changed: 4 additions & 1 deletion
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)