# MATLAB chord diagram **Repository Path**: slandarer/matlab-chord-chart ## Basic Information - **Project Name**: MATLAB chord diagram - **Description**: MATLAB chord chart - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 15 - **Forks**: 7 - **Created**: 2023-04-01 - **Last Updated**: 2026-04-25 ## Categories & Tags **Categories**: charting-components **Tags**: chord, chord-chart, chord-diagram, 弦图, 和弦图 ## README # MATLAB chord chart ## chordChart ![输入图片说明](chordChart/gallery/cover6.png) ```matlab dataMat = [2 0 1 2 5 1 2; 3 5 1 4 2 0 1; 4 0 5 5 2 4 3]; dataMat = dataMat + rand(3, 7); dataMat(dataMat < 1) = 0; colName = {'G1', 'G2', 'G3', 'G4', 'G5', 'G6', 'G7'}; rowName = {'S1', 'S2', 'S3'}; CC = chordChart(dataMat, 'rowName',rowName, 'colName',colName); CC = CC.draw(); CC.setFont('FontSize',17, 'FontName','Cambria') % 显示刻度和数值 % Displays scales and numeric values CC.tickState('on') CC.tickLabelState('on') % 调节标签半径 % Adjustable Label radius CC.setLabelRadius(1.4); ``` #### fileexchange下载链接 Zhaoxu Liu / slandarer (2026). chordChart (chord diagram | 弦图) (https://www.mathworks.com/matlabcentral/fileexchange/116550-chordchart-chord-diagram), MATLAB Central File Exchange. Retrieved April 14, 2026. ___ ## biChordChart ![输入图片说明](biChordChart/gallery/cover6.png) ```matlab dataMat = randi([0, 8], [6, 6]); % 添加标签名称 NameList = {'CHORD', 'CHART', 'MADE', 'BY', 'SLANDARER', 'MATLAB'}; BCC = biChordChart(dataMat, 'Label',NameList, 'Arrow','on'); BCC = BCC.draw(); % 添加刻度 BCC.tickState('on') % 修改字体,字号及颜色 BCC.setFont('FontName','Cambria', 'FontSize',17, 'Color',[.2,.2,.2]) % version 1.1.0更新 % 函数labelRotate用来旋转标签 % The function labelRatato is used to rotate the label % BCC.labelRotate('on') BCC.setLabelRadius(1.3); BCC.tickLabelState('on') ``` #### fileexchange下载链接 Zhaoxu Liu / slandarer (2026). biChordChart (bidirectional chord diagram | 有向弦图) (https://www.mathworks.com/matlabcentral/fileexchange/121043-bichordchart-bidirectional-chord-diagram), MATLAB Central File Exchange. Retrieved April 14, 2026. ___ ## circNetChart ![输入图片说明](circNetChart/gallery/demo2_4_1.png) ```matlab Data = triu(randi([1, 20], [18, 18])); % Create circular network chart object CN = circNetChart(Data); CN.NodeSizeLim = [.05, .05]; CN.EdgeWidthLim = [.01, .01]; CN.Curvature = 1; % Bezier curve: 1 CN.NodeColor = turbo(18); CN = CN.draw(); ``` #### fileexchange下载链接 Zhaoxu Liu / slandarer (2026). circular network chart (non-ribbon chord diagram) (https://www.mathworks.com/matlabcentral/fileexchange/118655-circular-network-chart-non-ribbon-chord-diagram), MATLAB Central File Exchange. Retrieved April 25, 2026.