File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1061,7 +1061,7 @@ def plot_NQueens(solution):
10611061 board = np .array ([2 * int ((i + j ) % 2 ) for j in range (n ) for i in range (n )]).reshape ((n , n ))
10621062 im = Image .open ('images/queen_s.png' )
10631063 height = im .size [1 ]
1064- im = np .array (im ).astype (np .float ) / 255
1064+ im = np .array (im ).astype (np .float64 ) / 255
10651065 fig = plt .figure (figsize = (7 , 7 ))
10661066 ax = fig .add_subplot (111 )
10671067 ax .set_title ('{} Queens' .format (n ))
Original file line number Diff line number Diff line change @@ -1101,7 +1101,7 @@ def plot_NQueens(solution):
11011101 board = np .array ([2 * int ((i + j ) % 2 ) for j in range (n ) for i in range (n )]).reshape ((n , n ))
11021102 im = Image .open ('images/queen_s.png' )
11031103 height = im .size [1 ]
1104- im = np .array (im ).astype (np .float ) / 255
1104+ im = np .array (im ).astype (np .float64 ) / 255
11051105 fig = plt .figure (figsize = (7 , 7 ))
11061106 ax = fig .add_subplot (111 )
11071107 ax .set_title ('{} Queens' .format (n ))
You can’t perform that action at this time.
0 commit comments