From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: plot circular data (e.g. vehicle trajectories of a ringroad)
Date: Fri, 6 Aug 2010 13:07:05 +0000 (UTC)
Organization: Technische Universiteit Delft
Lines: 9
Message-ID: <i3h1dp$s9o$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1281100025 28984 (6 Aug 2010 13:07:05 GMT)
NNTP-Posting-Date: Fri, 6 Aug 2010 13:07:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2003193
Xref: comp.soft-sys.matlab:659705


I have a 2D data set of vehicle trajectories, containing the position of every vehicle at every time step. This position refers to a location of a ringroad. A ringroad of 1000m length has a jump in its location numbering: After meter 999 you reach "the beginning" of the ringroad at meter 0 again, much like in a car race at the start-finish line.)

Plotting these trajectories with the plot command leads to an ugly plot:
  (1.) The plot show large jumps near the start-finish line, caused by the linear interpolation of the plot function. Instead, I'd like to interpolate in a _circular_ manner. 
  (2.) It is not possible to pan the plot in the spatial dimension near the start-finish line.

Is there an easy solution to this problem?