Draw the canvas when creating the ax to avoid RuntimeError

This commit is contained in:
Steven Silvester
2014-12-26 20:14:41 -06:00
parent f898bd0209
commit a7a84bbcde
+1
View File
@@ -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