bi-directional heat plot

2 visualizaciones (últimos 30 días)
Gavin Seddon
Gavin Seddon el 20 de Jun. de 2022
Respondida: Brahmadev el 29 de Sept. de 2023
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

Respuestas (1)

Brahmadev
Brahmadev el 29 de Sept. de 2023
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!

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by