Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions wordcloud/wordcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ def generate_from_frequencies(self, frequencies, max_font_size=None): # noqa: C
break

x, y = np.array(result) + self.margin // 2
x, y = x.item(), y.item() #convert np.float to float (native python). It cannot be jsonify otherwise
# actually draw the text
draw.text((y, x), word, fill="white", font=transposed_font)
positions.append((x, y))
Expand Down