I am developing a graphing application using matplotlib and Tkinter. Added the function of changing the position of the axes:
ax = f.gca() ax.cla() ax.spines['left'].set_position('center') ax.spines['bottom'].set_position('center') ax.spines['top'].set_visible(False) ax.spines['right'].set_visible(False) f.canvas.draw()
If there are no graphs in the program, at the time of redrawing the coordinate axes, then the axes change their positions and then the graphing proceeds as it should. But, if there are graphs in the program before the axes are redrawn, the axes are redrawn, and graphs built before are not displayed. How can I fix this point so that the axes are redrawn immediately with the available graphs? Thank you in advance.