Shaded Plots and Statistical Distribution Visualizations

Create pretty shaded plots and plots to visualize the statistical distribution of data.
2.4K Downloads
Updated 27 Oct 2018

View License

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.

Shaded 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).

Cite As

John Onofrey (2024). 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
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux

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.1

Added white background to screenshot.

1.0.0