- PlotColor by Bruno Luong
- Conditionally Colored Plot (CCPLOT) by Michael Heidingsfeld
- Perceptually improved colormaps by Matteo Niccoli
Getting color in a "timeseries plot"
13 views (last 30 days)
Show older comments
Commented: per isakson on 2 Jan 2017
Hi, I am plotting a timeseries using a function like this "ts1 = timeseries(DD1,1:length(DD1))" I manage to plot "plot(ts1,'.') and it looks nice. However I would like to get color into the graph based on a second vector. Is this possible? I know "scatter" has this function but it does not work on my ts data..
What i want is date on x-axis, Wind direction on y-axis and Wind speed displayed as color. Can anyone help me please?
Preethi on 2 Jan 2017
in that case you can use for loop, I tried to provide basic example..
More Answers (1)
Preethi on 30 Dec 2016
you can append 'r', 'g' ....
Find more on Scatter Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!