Hi i'm trying to get a set of points from matplotlib.pyplot.ginput.
my idea is to save points in a list while the actuaPoint!=lastPoint
is there a way to do it something like:
lastPoint = None
pointList = []
actualPoint = plt.ginput(1)
while (actualPoint=plt.input()) != lastPoint:
pointList.append(actualPoint)
lastPoint= actualPoint
? resuming i'm trying to know if there's a way to do the variable assignment inside the while statement
:=operator works only in python 3.9+ !