Plotting functions to reflect modern visual design aesthetics. Shading of line plots is at the core of this visualization. The main features of these functions allow for (i) shaded line plotting and (ii) shaded statistical distribution line plotting.
This functionality adds a lightly shaded effect under a line plot (plot_shaded). This function can also be used to create visually appealing histogram plots (plot_histogram_shaded).
Shaded Distribution Plotting:
For line plots that may have multiple samples and subject to noise/measurement errors, it is oftentimes useful to visualize the distribution of errors, e.g. traditionally this could be done use line plots with error bars. The two functions provided here provide functionality to visualize the error in the data as a shaded effect on the plot. plot_distribution may be used to visualize the line plot's mean and standard deviation, while plot_distribution may be used to visualize non-Gaussian statistics of the line plot, e.g. the median and inter-quartile range (IQR).
John Onofrey (2022). Shaded Plots and Statistical Distribution Visualizations (https://www.mathworks.com/matlabcentral/fileexchange/69203-shaded-plots-and-statistical-distribution-visualizations), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!