You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possibly I'm just missing some config, do let me know if so! Here's what I did:
$ export SDL_VIDEODRIVER="dummy"
$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
>>> pygame.display.set_mode((1024,768))
<Surface(1024x768x8 SW)>
>>> from pytagcloud import create_tag_image, make_tags
>>> from pytagcloud.lang.counter import get_tag_counts
>>>
>>> YOUR_TEXT = "A tag cloud is a visual representation for text data, typically\
... used to depict keyword metadata on websites, or to visualize free form text."
>>>
>>> tags = make_tags(get_tag_counts(YOUR_TEXT), maxsize=120)
>>>
>>> create_tag_image(tags, 'cloud_large.png', size=(900, 600), fontname='Lobster')
The result looks like this:
The text was updated successfully, but these errors were encountered:
Having the same issue myself. Works flawlessly on my local machine, but on my remote server all the words pile up on eachother. I've tried editing the __init__.py file to use a headless version of PyGame (by setting os.environ['SDL_VIDEODRIVER'] to 'dummy', but it still hasn't fixed the issue.
Possibly I'm just missing some config, do let me know if so! Here's what I did:
The result looks like this:
The text was updated successfully, but these errors were encountered: