Skip to content

Commit 024257c

Browse files
author
Dobiasd
committed
smaller images
1 parent 8729132 commit 024257c

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed
-10.5 KB
Loading

programming_language_learning_curves/generate.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import matplotlib.font_manager as fm
1111
import matplotlib
1212

13-
prop = fm.FontProperties(fname='Humor-Sans.ttf', size=16)
13+
prop = fm.FontProperties(fname='Humor-Sans.ttf', size=18)
1414

1515
def annotate(text, pos, to):
1616
plt.annotate(text, xy=to, arrowprops=dict(arrowstyle='->'), xytext=pos,
@@ -35,7 +35,7 @@ def defaults2(title, loc='upper right', filename=None):
3535
plt.xlabel('time', fontproperties=prop)
3636
if not filename:
3737
filename = title.lower()
38-
plt.savefig(filename.lower() + '.png')
38+
plt.savefig(filename.lower() + '.png', dpi=75)
3939
plt.clf()
4040

4141
def javascript():
@@ -132,13 +132,13 @@ def cpp():
132132
def haskell():
133133
defaults1()
134134

135-
annotate('My brain hurts!', (3, 20), (2, 8))
136-
annotate('My brain hurts!', (3, 20), (6, 8))
137-
annotate('My brain hurts!', (3, 20), (10, 8))
138-
annotate('My brain hurts!', (3, 20), (14, 8))
139-
annotate('My brain hurts!', (3, 20), (18, 8))
140-
annotate('My brain hurts!', (3, 20), (22, 8))
141-
annotate('My brain hurts!', (3, 20), (26, 8))
135+
annotate('My brain hurts!', (1, 20), (2, 8))
136+
annotate('My brain hurts!', (1, 20), (6, 8))
137+
annotate('My brain hurts!', (1, 20), (10, 8))
138+
annotate('My brain hurts!', (1, 20), (14, 8))
139+
annotate('My brain hurts!', (1, 20), (18, 8))
140+
annotate('My brain hurts!', (1, 20), (22, 8))
141+
annotate('My brain hurts!', (1, 20), (26, 8))
142142

143143
annotate('Monads', (25, 40), (40, 20))
144144
annotate('Monads', (25, 40), (40, 30))
-15.6 KB
Loading
-9.3 KB
Loading
-9.77 KB
Loading
-11.4 KB
Loading
-6.67 KB
Loading
-9.88 KB
Loading

0 commit comments

Comments
 (0)