フィルターのクリア

bi-directional heat plot

1 回表示 (過去 30 日間)
Gavin Seddon
Gavin Seddon 2022 年 6 月 20 日
回答済み: Brahmadev 2023 年 9 月 29 日
Hello
I have a directional feather plot (.mat attached). This gives large data tab (.txt not loadable).
Will someone please tell me how to place the two columns of data ajacent on a heat fit for comparison?
The values may need to be loged because of their quantity.
GS

回答 (1 件)

Brahmadev
Brahmadev 2023 年 9 月 29 日
Hi Gavin,
From my understanding, you would like to plot the data in the columns of 'bothX.txt' using a heatmap. You might be facing an issue due to the heatmap grid as the size of the data is large. You can use the code below for turning the grid off and create a more legible heatmap:
fileID = fopen('bothX.txt','r'); % Open the .txt file
formatSpec = '%f';
sizeA = [2 Inf];
DataPoints = fscanf(fileID, formatSpec, sizeA); % Read the data from the file
fclose(fileID); % Close the file
DataPoints = DataPoints'; % Reformating the data according to match our original data
h = heatmap(DataPoints); % Plot the heatmap
h.GridVisible = 'off'; % Turn the Grid Off
h.YDisplayLabels = nan(size(h.YDisplayData)); % Remove the Y axes' Display Labels
Hope this helps resolve your issue!

カテゴリ

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