Skip to content

Commit 7ec8faa

Browse files
committed
Update scale parameter is board display function for CSP exercise
1 parent 609e9f4 commit 7ec8faa

File tree

1 file changed

+1
-1
lines changed
  • Exercises/1_Constraint Satisfaction

1 file changed

+1
-1
lines changed

Exercises/1_Constraint Satisfaction/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def displayBoard(locations, shape):
6767

6868
fig = plt.gcf()
6969
fig.set_size_inches([r, c])
70-
scale = fig.get_dpi() / max(img.shape)
70+
scale = 0.75 * fig.get_dpi() / max(img.shape)
7171
ax = plt.gca()
7272
for y, x in set(locations):
7373
box = mpl.offsetbox.OffsetImage(img, zoom=scale)

0 commit comments

Comments
 (0)