Skip to content

Commit 0b294e4

Browse files
committed
adjust text size to fit in html docs
1 parent 009073b commit 0b294e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/text_labels_and_annotations/rainbow_text.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def rainbow_text(x,y,ls,lc,**kw):
3232
"""
3333
t = plt.gca().transData
3434
fig = plt.gcf()
35-
plt.show()
3635

3736
#horizontal version
3837
for s,c in zip(ls,lc):
@@ -50,7 +49,8 @@ def rainbow_text(x,y,ls,lc,**kw):
5049
t = transforms.offset_copy(text._transform, y=ex.height, units='dots')
5150

5251

53-
plt.figure()
5452
rainbow_text(40, 540, "all unicorns poop rainbows ! ! !".split(),
5553
['red', 'cyan', 'brown', 'green', 'blue', 'purple', 'black'],
56-
size=40)
54+
size=18)
55+
56+
plt.show()

0 commit comments

Comments
 (0)