File Exchange

image thumbnail


version 1.7 (765 KB) by Joshua Welsh
Grouped Circular Heatmap Function


Updated 03 Jul 2018

View License

A function that allows plotting of a data array in a circular heatmap.
Optionally spatially separating groups can be achieved by using a cell array with a data array of each group per cell.
Allows input for the cmocean toolbox colormaps on the file exchange.

close all

%% Online examples

DataX{1} = rand(100, 10); % Create dataset of 3 groups
DataX{2} = -rand(100, 5);
DataX{3} = rand(100, 7);

x = 1:1:100;
Labels = [];

for i = 1:numel(x)
Labels{i} = ['Label ', num2str(x(i))]; % Create labels for each column

Groups = {'Pre', 'During','After'}; % Create labels for each group

[Fig] = CirHeatmap(DataX', 'GroupLabels', Groups,'OuterLabels', Labels, 'CircType', 'half','InnerSpacerSize',0.5);

Comments and Ratings (1)

Z Chen

Z Chen (view profile)



- EdgeColor is transparent by default and can be customised.
- InnerSpaceSize rescaled

Bug fix

Description update

Updated default colormap and input for colormap specification
Updated error messages
Added CirHeatmap example script

Removed unnecessary file paths.

Example provided

Screenshot updated

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: circlePlot, cmocean perceptually-uniform colormaps

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor