在pyplot中,我通常会绘制大量数据,因此,总是使用zoom(通过按下“缩放到矩形”按钮,总是这样做很麻烦)。有没有一种方法可以通过python中的命令行激活缩放功能?搜索了很多,但没有运气。我希望这样的事情是可能的:
plt.pyplot(X,Y) # plot some data
plt.zoom_activate() # !! activate the 'zoom to rectangle' - that's what Im looking for
plt.show() # show the pyplot