can Python Matplotlib “ginput” be independent from “zoom to rectangle”?
问题 I am using ginput for a graphic selection of a few points along a time signal. Sometimes, when the signal is too dense it might be useful to zoom over an area before making the selection of points. My problem is that it seems that the zoom to rectangle option seems to be accounted for in ginput . For instance, with this sample code: from __future__ import print_function from pylab import arange, plot, sin, ginput, show import numpy as np t = np.linspace(0,25,500) plot(t, sin(t)) x = ginput(3)