mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-30 15:00:28 +08:00
Draw the canvas when creating the ax to avoid RuntimeError
This commit is contained in:
@@ -203,6 +203,7 @@ def figimage(image, scale=1, dpi=None, **kwargs):
|
||||
|
||||
ax.set_axis_off()
|
||||
ax.imshow(image, **kwargs)
|
||||
ax.figure.canvas.draw()
|
||||
return fig, ax
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user