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?

Thanks

Joseph

 

p.s.: if this is the wrong forum, could you let me know where to post?