First, I create a table that contains the count of nodes per pixel. I fill this this table with a
create table... as ...count(*).... group by. The values for the variables
f determine the aspect ration and the size of the resulting picture:
yare unique. This pair represents a pixel on the final image.
cntis the number of nodes that fall into the area covered by a
After filling this table, I can iterate over each pixel and draw a color that is lighter for large pixel counts and darker for small pixel counts. I use the Python Image Library (
import Image) to draw the image.
Here's the result:
The same picture with a better resolution.