【发布时间】:2023-03-21 23:27:01
【问题描述】:
当我运行此代码时,第二个 matplotlib.pyplot 窗口仅在我关闭第一个窗口后才会出现,当我像这样按顺序打开它们时。如何同时显示多个窗口?
def graph(xList, yList, string):
xArr = numpy.array(xList)
yArr = numpy.array(yList)
matplotlib.pyplot.plot(xArr,yArr)
matplotlib.pyplot.title(string)
matplotlib.pyplot.show()
graph(posX,posY, "positive")
graph(negX,negY, "negative")
【问题讨论】:
标签: python matplotlib graph