Date  File  Comment by  Comment  Rating 

17 Jul 2012  Shaded time series Plot time series one above the other with coloured strips highlighting interesting features.  Carl Fischer  Hi Joe, It sounds like you want multiple lines on a single plot instead of several subplots. There are many variations like this and I don't know how to deal with them without adding loads of parameters or creating several new functions. I think you can work around it as follows. Run shadedTimeSeries(x,y1,indicator) first. This will give you a single plot with the coloured bars. Then 'hold all'. Then plot(x,y2); plot(x,y3)... This will overlay your other plots on top. Unfortunately, the height of the bars is based on the values of y1, so you have to make sure that y1 goes above and below the other variables. Feel free to tweak the script for your own purposes. I think you just need to call the internal plot_partial() function with multiple columns in ydata.  Carl 

17 Jul 2012  Shaded time series Plot time series one above the other with coloured strips highlighting interesting features.  Joerg Vetter  Hi Carl,
But how could I manage to put shade in a plot which contains several different lines of data. Example: One contains the data:
Is this possible?


07 Sep 2010  Shaded time series Plot time series one above the other with coloured strips highlighting interesting features.  Carl Fischer  I uploaded a new version which allows you run this function with only one column of data to populate your own subplots (instead of creating a new figure). Not sure if that's what KuoHsien was requesting. See the examples in the documentation to see how this works. 

22 Jun 2010  Shaded time series Plot time series one above the other with coloured strips highlighting interesting features.  Carl Fischer  Thanks for the feedback. Not sure what you mean about subplots.


21 Jun 2010  Shaded time series Plot time series one above the other with coloured strips highlighting interesting features.  KuoHsien  Hi Carl, this is a useful function. How to show the box for subplots and legend? thx. 

23 Sep 2009  Shaded time series Plot time series one above the other with coloured strips highlighting interesting features.  Carl Fischer  Thanks for the suggestion Shlomi. I've submitted an update but I also added some extra sanity checks to ensure sizes are consistent. 

22 Jul 2009  Shaded time series Plot time series one above the other with coloured strips highlighting interesting features.  Shlomi  if the indicator is a row vector the function doesn't work properly. I added the simple command of indicator = indicator(:); in my code. You should add it too 
