Skipping NaNs in ct.chart.line plot

Hi! I have made the following plot in the workflow:

Data from the year 2012 is missing, as a result there are NaNs in the time series. For now, I have used ct.math.nan_to_num() to set the NaNs to 0.0.

Is it possible to ignore the NaNs and not plot those?



Hi Huayuan,

To avoid seeing the empty period on the plot I would plot to 2007 to 2011 and then from 2013 to 2017 so that nothing is plotted for the year 2012.

Does that make sense?



Makes sense, thank you Vivien!