GetRandomLineStyleF​orPlot()

Version 1.0.0.0 (502 Bytes) by Alexander
Randomly create a line style for plotting
50 Downloads
Updated 25 Aug 2015

View License

This function creates the random style for your plot (as a cell array with one element). Colors iterate over all colors except for white one. One can use it whenever needs to plot many different data sets on the same plot for preliminary purposes.
Usage example:
lineStyle = GetRandomLineStyleForPlot();
plot(t,y, lineStyle{1});

Cite As

Alexander (2024). GetRandomLineStyleForPlot() (https://www.mathworks.com/matlabcentral/fileexchange/52653-getrandomlinestyleforplot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Line Plots in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0