フィルターのクリア

Adjusting x and y-axis values on heat-map so they are legible

2 ビュー (過去 30 日間)
Colin Lynch
Colin Lynch 2018 年 1 月 20 日
回答済み: Walter Roberson 2018 年 1 月 20 日
Hello all!
I just made a heat-map of some data and there are so many values on the x and y axes that its hard to make out the individual numbers. Is there a way I can skip some rows so that only every fifth number or so is visible?
I have a screenshot of my graph attached as well as my original csv file, and my code for the heat-map is right here:
m = csvread('steps.csv');
cdata = m(:,102:end);
h = heatmap(cdata, 'ColorMap', parula);
title('Time to Equilibrium from Various Initial Points');
xlabel('Active Ants on Task 1');
ylabel('S Value');

採用された回答

Walter Roberson
Walter Roberson 2018 年 1 月 20 日
You can pass in the xvalues and yvalues parameters, giving them as a cell array of strings, in which most of the strings were empty.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by