Skip to content

Commit 6e09953

Browse files
committed
Updating the support files
1 parent e74b0dc commit 6e09953

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

diagram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def diagram(width=5, height=1, **options):
3434
fig, ax = plt.subplots(**options)
3535

3636
# TODO: dpi in the notebook should be 100, in the book it should be 300 or 600
37-
fig.set_dpi(300)
37+
fig.set_dpi(100)
3838

3939
# Set figure size
4040
fig.set_size_inches(width, height)

thinkpython.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88

99
def traceback(mode):
10-
"""
10+
"""Set the traceback mode.
11+
12+
mode: string
1113
"""
1214
with contextlib.redirect_stdout(io.StringIO()):
1315
get_ipython().run_cell(f'%xmode {mode}')

0 commit comments

Comments
 (0)