Data Distribution Plots
Visualize the distribution of data using plots such as histograms, pie charts, or word clouds. For example, use a histogram to group data into bins and display the number of elements in each bin.
|Bivariate histogram plot
|Increase number of histogram bins
|Decrease number of histogram bins
|Histogram bin counts
|Bivariate histogram bin counts
|Box chart (box plot) (Since R2020a)
|Swarm scatter chart (Since R2020b)
|3-D swarm scatter chart (Since R2020b)
Scatter Plots and Parallel Coordinates
Part-to-Whole Charts and Heat Maps
|Binscatter appearance and behavior
|Control box chart appearance and behavior (Since R2020a)
|Bubble chart appearance and behavior (Since R2020b)
|Bubble cloud appearance and behavior (Since R2021a)
|Bubble legend appearance and behavior (Since R2020b)
|Donut chart appearance and behavior (Since R2023b)
|Heatmap chart appearance and behavior
|Histogram appearance and behavior
|Bivariate histogram appearance and behavior
|Scatter chart appearance and behavior
|Control scatter histogram chart appearance and behavior
|Control parallel coordinates plot appearance and behavior (Since R2019a)
|Pie chart appearance and behavior (Since R2023b)
|Control word cloud chart appearance and behavior
- Plots That Support Tables
Create plots by passing tables directly to plotting functions.
- Add Legend to Pie Chart
This example shows how to add a legend to a pie chart that displays a description for each slice.
- Offset Pie Slice with Greatest Contribution
This example shows how to create a pie graph and automatically offset the pie slice with the greatest contribution.
- Label Pie Chart with Text and Percentages
When you create a pie chart, MATLAB labels each pie slice with the percentage of the whole that slice represents.
- Color Analysis with Bivariate Histogram
This example shows how to adjust the color scale of a bivariate histogram plot to reveal additional details about the bins.
- Control Categorical Histogram Display
This example shows how to use
histogramto effectively view categorical data.
- Create Heatmap from Tabular Data
This example shows how to create a heatmap from a table and how to modify the heatmap appearance.
- Create Word Cloud from String Arrays
This example shows how to create a word cloud from plain text by reading it into a string array, preprocessing it, and passing it to the
- Explore Table Data Using Parallel Coordinates Plot
This example shows how to create a parallel coordinates plot from a table and how to modify the appearance of the plot.
- Replace Discouraged Instances of hist and histc
discretizeare the recommended histogram creation and computation functions for new code.