Closed zorce closed 1 year ago
I was able to get SOMETHING to work here, though I'm unsure if it's what you were hoping for. If you change your drawing.draw(...)
call to drawing.draw(canvas=ax, backend="matplotlib")
it does show a diagram instead of an error.
That will draw circuit diagram in a separate matplotlib window, but I'm looking for an integrated diagram in my tkinter frame.
Also tried with the latest version and newer python, but get the same error. But in with the warning now "DeprecationWarning: Use of backend
is deprecated. Use canvas
. drawing.draw(canvas=ax, backend='matplotlib')"
Ahh, I think I figured it out! Try drawing.draw(canvas=ax, show=False)
Ah nice!! Thanks!
Tries to get the matplotlib integration to work with the tkinter matplotlib backend. But cant seem to get the drawing to work with FigureCanvasTkAgg
AttributeError: Figure.show works only for figures managed by pyplot, normally created by pyplot.figure()
Any ideas on how to fix this? Bellow is a small snippet example.