Skip to content

Latest commit

 

History

78 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chart Examples

View Chart Examples on File Exchange Open in MATLAB Online Chart Examples Actions

Overview

This toolbox contains the MATLAB® code and examples for the technical article Creating Specialized Charts with MATLAB Object-Oriented Programming.

A chart provides a task-specific application programming interface (API) for creating custom visualizations. Designing and implementing a chart not only provides a convenient API for end users, but simultaneously removes the need for the user to manipulate low-level graphics objects.

The toolbox comprises several diverse examples of custom MATLAB charts, together with an app for browsing the available charts and their documentation.

You can inspect the source code, explore the features and functionality, and run examples demonstrating the use of each chart. The toolbox also has documentation and resources to help you develop your own charts.

Chart Examples

Chart List

  • AircraftChart: Visualize an aircraft and modify its roll, pitch, and yaw
  • AnnulusChart: Visualize relative proportions in a data vector using an annulus (ring)
  • CircularNetFlowChart: Show directed to/from relationships between pairs of categories
  • ClockChart: Display an analog clock, using a timer to schedule regular updates
  • CylinderChart: Plot data using stacked cylinders
  • EdgeworthBowleyChart: Plot the utility curves of two individuals and the derived Pareto-efficient contract curve
  • GraphicsHierarchyChart: Visualize the graphics hierarchy descending from a given graphics object
  • ImpliedVolatilityChart: Plot an implied volatility surface as a function of the option strike price and time to expiry
  • LineGradientChart: Plot a variable-color curve against a date/time vector
  • LineSelectorChart: Display a collection of line plots and select one to highlight
  • PolarChart: Polar line graph of dependent numeric variables plotted against independent circular data
  • RadarScope: Plot a set of blips on a radar scope and issue proximity alerts
  • RangefinderChart: Bivariate scatter plot showing the crossover point of the marginal medians and lines indicating the marginal adjacent values
  • SankeyChart: Illustrate the flow between different states
  • ScatterBoxChart: Bivariate scatter plot with marginal boxplots
  • ScatterDensityChart: Bivariate scatter plot using color to indicate relative density of the data points
  • ScatterFitChart: Manage bivariate scattered data together with the line of best fit
  • SettlementChart: Plot in the money option prices against strike prices
  • SignalTraceChart: Plot non-overlapping signal traces against a numeric time vector
  • SnailTrailChart: Plot excess returns against tracking errors for an asset relative to a benchmark
  • SpiderChart: Plot and compare values from distinct measurements on a web
  • TernaryChart: Barycentric plot of three variables summing to a constant
  • ValueAtRiskChart: Plot the distribution of a return series together with its value at risk metrics and a distribution fit
  • WaterfallChart: Cumulative bar chart visualizing the evolution of an initial value
  • WindRoseChart: Display wind speed and direction data on a polar histogram

The documentation provides examples of how to develop and use these charts.

Installation and Getting Started

The chart examples are provided as a MATLAB Toolbox.

  1. Download the latest toolbox file here (Chart_Example.mltbx), or an earlier version from the Releases section on GitHub.
  2. Double-click on the toolbox installer (the Chart_Examples.mltbx file) to install the toolbox.
  3. Verify the toolbox installation by entering >> ver charts at the MATLAB command line.
  4. See the GettingStarted.m guide for introductory information.
  5. Open the documentation (>> doc) under Supplemental SoftwareChart Examples Toolbox to browse the example charts.

MathWorks Product Requirements

This toolbox requires MATLAB release R2025a or later.

Development workflows, namely running tests and automated builds, require the following toolboxes, respectively:

Some example charts rely on additional products.

License

The license is available in the LICENSE.txt file in this GitHub repository.

Copyright 2018-2026 The MathWorks, Inc.

About

This toolbox contains the MATLAB code for the technical article "Creating Specialized Charts with MATLAB Object-Oriented Programming."

Resources

Security policy

Stars

11 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages