Rodrigues, Joseph wrote: > > I have a question (new user here): I have datasets of irregular time > spaced data and am having a problem with Matplot lib. > > I am plotting two datasets: one is continuous time series data (simple > line chart) and the other irregular time series data. > > The problem I have is: MatPlotLib is interpolating data for the > irregular data where there is no data. > > So if I have data from 1985 – 1989 then no data for 1990 – 1994, > matplotlib is drawing a line connecting the missing data. > > How does one plot irregular spaced time series data? > The way I do that is index the time data and plot against the index.
1985--0 1986--1 . . . 1989--4 1995--5 etc. Bill ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users