當我運行這段代碼時,第二個matplotlib.pyplot窗口只有在關閉第一個matplotlib.pyplot後纔會出現,當我像這樣順序打開它們時。我如何同時顯示多個窗口?併發matplotlib.pyplot Windows
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")