ginput

can Python Matplotlib “ginput” be independent from “zoom to rectangle”?

江枫思渺然 提交于 2020-01-13 13:08:42
问题 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)

can Python Matplotlib “ginput” be independent from “zoom to rectangle”?

别等时光非礼了梦想. 提交于 2020-01-13 13:07:05
问题 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)

gWidgets - ginput() function error

£可爱£侵袭症+ 提交于 2019-12-13 03:49:39
问题 I'm having a problem with launching the ginput pop-up from gWidgets. This is the error: Loading required package: gWidgetstcltk Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘.ginput’ for signature ‘"guiWidgetsToolkittcltk"’ In addition: Warning message: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘gWidgetstcltk’ I use the popup to type a number that I then assign to a variable

Running ginput while also running a loop in MATLAB

蹲街弑〆低调 提交于 2019-12-11 20:43:44
问题 I want to display a crosshair in one of the games I'm making in MATLAB. I tried using the ginput because it would be perfect as it displays crosshairs and reads in the x and y locations of what was clicked. However, since it always waits for a click and I have moving objects, it causes the object to be created on the screen and then not move. How do I get the loop to run and continue moving the object while ginput is also running and evaluating clicks? 回答1: Very similar to Update figure while

can Python Matplotlib “ginput” be independent from “zoom to rectangle”?

早过忘川 提交于 2019-12-06 01:27:33
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) print("clicked",x) show() If I zoom over a portion of the signal, the clicks made for the zoom area