(width, height, scale=1.0, dpi=100)
| 287 | |
| 288 | |
| 289 | def prepare_figure_axes(width, height, scale=1.0, dpi=100): |
| 290 | fig = plt.figure(frameon=False, figsize=(width * scale / dpi, height * scale / dpi), dpi=dpi) |
| 291 | ax = fig.add_subplot(111) |
| 292 | ax.axis("off") |
| 293 | ax.set_xlim(0, width) |
| 294 | ax.set_ylim(0, height) |
| 295 | ax.invert_yaxis() |
| 296 | return fig, ax |
| 297 | |
| 298 | |
| 299 | def make_labeled_images_from_dataframe( |
no outgoing calls
no test coverage detected