(title, x, y)
| 47 | |
| 48 | |
| 49 | def plot(title, x, y): |
| 50 | fig, axes = plt.subplots() |
| 51 | axes.plot(x, y) |
| 52 | axes.set_title(title) |
| 53 | buffer = BytesIO() |
| 54 | fig.savefig(buffer, format="png") |
| 55 | plt.close(fig) |
| 56 | return image("png", buffer.getvalue()) |
| 57 | |
| 58 | |
| 59 | def poly_coef_input(index, callback): |
no test coverage detected