I am trying to create a 2D plot of a set of data points along a path in the x-y plane given by the coordinates (0,0) to (pi,0) to (pi,pi) to (0,0). This would mean plotting along the line y = 0 where x varies from 0 to pi first, then plotting along the line x = pi where y varies from 0 to pi second, and finally plotting along the line y = x where both x and y go from pi to 0. Is there a way to do this?
What I am essentially looking for is to do something like this:
specifies the row r containing the data points. I would like
to be the array of points along the specified path.