我有一些绘图功能,但是当我调用第三个功能时,第一个功能的绘图消失了。这可能吗?我尝试过axes.clear(),但是它擦除了所有内容
代码分为几个文件,但是这里是我说的功能
def pontos(self, nos, ident): #first function
for i in nos:
self.ax.plot([i[0]], [i[1]], [i[2]], marker = 'o', color = 'black', markersize = 5 )
def barras(self, nos, icd, ident2, rot):#second function
for i in icd:
self.ax.plot([nos[i[0]][0],nos[i[1]][0]], [nos[i[0]][1],nos[i[1]][1]], [nos[i[0]][2],nos[i[1]][2]],linewidth=3.5, c='gray')
def deslocamentP(self, deslocamentos, nos, quant): third function
self.oontos.remove()) ### doens't work ('function' object has no attribute 'remove')
text = str(deslocamentos[i][0]) + 'm'
self.ax.text((nos[i][0]-0.5), nos[i][1], nos[i][2], text)
self.ax.quiver(nos[i][0], nos[i][1], nos[i][2], 1, 0, 0, length = self.scal, color = 'k')