I’m inputting coordinates into my ShapeStim function using the vertices parameter. But my coordinates contain ‘nan’ values which I want to plot so I can see the missing section. But I get the following error:
I want to plot those nan values so that the image is drawn with those missing coordinates, e.g. if my original coordinates is length 64, then say 4 of those are nan values and it draws the image with those 4 coordinates missing from the image, so structural integrity of image is retained but those 4 coordinates don’t show up when I draw them on my window. I tried to input 0, but it makes the coordinate 0 so shape is distorted-which I don’t want. I’m plotting polygons with these coordinates
I can get the correct plot using matplotlib, which automatically (?) seems to plot the nan values, but I dont know how psychopy or rather shape.Stim can do this?
I’ve tried it but it doesn’t seem to work, since those points just revert to 0 since I’m looping through an empty numpy array and keeping the same (64,2) dimensions. Is there a way I can adjust the lineColor then in the ShapeStim() parameter? so that only those missing/ nan coordinates become invisible?