|
11 | 11 | },
|
12 | 12 | {
|
13 | 13 | "cell_type": "code",
|
14 |
| - "execution_count": 1, |
| 14 | + "execution_count": null, |
15 | 15 | "metadata": {},
|
16 | 16 | "outputs": [],
|
17 | 17 | "source": [
|
|
153 | 153 | "fig = plt.figure(figsize=(20, 20))\n",
|
154 | 154 | "grid = ImageGrid(fig, 111, nrows_ncols=(tiles.ny, tiles.nx), axes_pad=0.1)\n",
|
155 | 155 | "\n",
|
156 |
| - "for i, extent in enumerate(tiles):\n", |
| 156 | + "for i, (extent, out_size) in enumerate(tiles):\n", |
157 | 157 | " x, y, w, h = extent\n",
|
158 |
| - " tile = read_data(image_data, x, y, w, h, tiles.tile_size[0], tiles.tile_size[1])\n", |
| 158 | + " tile = read_data(image_data, x, y, w, h, out_size[0], out_size[1])\n", |
159 | 159 | " ax = grid[i]\n",
|
160 | 160 | " im = ax.imshow(tile)\n",
|
161 | 161 | " ax.text(2, 2, '%i %i' % (x, y), color='w', backgroundcolor='m', alpha=0.7)\n",
|
|
193 | 193 | "fig = plt.figure(figsize=(20, 20))\n",
|
194 | 194 | "grid = ImageGrid(fig, 111, nrows_ncols=(tiles.ny, tiles.nx), axes_pad=0.1)\n",
|
195 | 195 | "\n",
|
196 |
| - "for i, extent in enumerate(tiles):\n", |
| 196 | + "for i, (extent, out_size) in enumerate(tiles):\n", |
197 | 197 | " x, y, w, h = extent\n",
|
198 |
| - " tile = read_data(image_data, x, y, w, h, tiles.tile_size[0], tiles.tile_size[1])\n", |
| 198 | + " tile = read_data(image_data, x, y, w, h, out_size[0], out_size[1])\n", |
199 | 199 | " ax = grid[i]\n",
|
200 | 200 | " im = ax.imshow(tile)\n",
|
201 | 201 | " ax.text(2, 2, '%i %i' % (x, y), color='w', backgroundcolor='m', alpha=0.7)\n",
|
|
231 | 231 | "fig = plt.figure(figsize=(20, 20))\n",
|
232 | 232 | "grid = ImageGrid(fig, 111, nrows_ncols=(tiles.ny, tiles.nx), axes_pad=0.1)\n",
|
233 | 233 | "\n",
|
234 |
| - "for i, extent in enumerate(tiles):\n", |
| 234 | + "for i, (extent, out_size) in enumerate(tiles):\n", |
235 | 235 | " x, y, w, h = extent\n",
|
236 |
| - " tile = read_data(image_data, x, y, w, h, tiles.tile_size[0], tiles.tile_size[1])\n", |
| 236 | + " tile = read_data(image_data, x, y, w, h, out_size[0], out_size[1])\n", |
237 | 237 | " ax = grid[i]\n",
|
238 | 238 | " im = ax.imshow(tile)\n",
|
239 | 239 | " ax.text(2, 2, '%i %i' % (x, y), color='w', backgroundcolor='m', alpha=0.7)\n",
|
|
0 commit comments