필터 지우기
필터 지우기

bi-directional heat plot

조회 수: 3 (최근 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 CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by