Saturday, 2 October 2010

generating tag cloud in Python



Tag Clouds are an amazing way to emphasize on what is needed. Here, is a simple code snippet in Python that will generate tag cloud, on the basis of tags and their count provided.

The algorithm for generating tag cloud is used from http://en.wikipedia.org/wiki/Tag_cloud#Creation_of_a_tag_cloud




You can tweak and create better versions. Also this is on the Python side, there could be a similar one for JavaScript as well, which generates tag clouds on the fly.

No comments:

Post a Comment