Rank: 4704 based on 23 downloads (last 30 days) and 1 file submitted
photo

Carl Fischer

E-mail
Company/University
Lancaster University, UK.

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Carl
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 Mar 2011 Screenshot Shaded time series Plot time series one above the other with coloured strips highlighting interesting features. Author: Carl Fischer annotation, customization, highlight, time, subplots, graphics 23 7
  • 5.0
5.0 | 1 rating
Comments and Ratings by Carl View all
Updated File Comments Rating
15 Aug 2012 txt2mat fast and versatile ascii data import capable of handling large text files Author: Andres

Great. Thanks a lot.

15 Aug 2012 fix_lines Improves the style of lines in MATLAB generated eps files Author: Oliver Woodford

Finally! Thanks.

17 Jul 2012 Shaded time series Plot time series one above the other with coloured strips highlighting interesting features. Author: 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

01 May 2012 Demonstration of Astar (A*) Pathfinding algorithm Astar (A*) Author: Bob Sturm

Nice demo. Thanks. However, I'm struggling to make the algorithm work with a rectangular map due to the fact that the order of the x and y axes depends on whether we're talking about image coordinates or matrix indexes. Terribly confusing.

12 Oct 2010 Add plot markers to an existing plot Add a specified number of markers to a plot Author: Matthijs

I'm surprised this hasn't got more good ratings and comments.
May I suggest you also copy the LineWidth and MarkerSize properties from the original plot to the markers. Currently you only copy the LineStyle and Color. Even if there are no markers in the original plot the MarkerSize property can still be set.

Comments and Ratings on Carl's Files View all
Updated File Comment by Comments Rating
17 Jul 2012 Shaded time series Plot time series one above the other with coloured strips highlighting interesting features. Author: Carl Fischer Fischer, Carl

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. Author: Carl Fischer Vetter, Joerg

Hi Carl,
thanks a lot for this script and the examples. It's totally what I needed.

But how could I manage to put shade in a plot which contains several different lines of data.

Example: One contains the data:
plot(vec1);
hold on;
plot(vec_2);
-->now I'd like to use your shadedTimeSeries function within this single plot

Is this possible?
cheers Joe

07 Sep 2010 Shaded time series Plot time series one above the other with coloured strips highlighting interesting features. Author: Carl Fischer Fischer, Carl

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 Kuo-Hsien 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. Author: Carl Fischer Fischer, Carl

Thanks for the feedback. Not sure what you mean about subplots.
If you just want to display the part of the legend that shows the shaded colour then you can add legend('Interesting bit'); after this function. I feel that anything more sophisticated will be difficult to generalise and may be quite specific to your particular problem. It might be easier if you tweak the function yourself.

21 Jun 2010 Shaded time series Plot time series one above the other with coloured strips highlighting interesting features. Author: Carl Fischer Kuo-Hsien

Hi Carl, this is a useful function. How to show the box for subplots and legend? thx.

Contact us