Filter löschen
Filter löschen

How to remove box in heatmap ?

5 Ansichten (letzte 30 Tage)
도현 김
도현 김 am 29 Mär. 2021
Bearbeitet: Walter Roberson am 29 Mär. 2021
example )
plot(1:10)
set(gca,'box','off')
%%%%%%%%%%%
i want )
h = rand(10)
heatmap(h,'box','off') ...... but cannot use 'box' in heamap.
I want to remove the outline.
Could there be any way ?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 29 Mär. 2021
Bearbeitet: Walter Roberson am 29 Mär. 2021
Possibly, but it would not be easy. You would have to use struct() on the heatmap object in order to get at internal parts of it, and you would have to figure out exactly which internal part to change.
For example it turns out you can change some of the text by recording the heatmap handle (call it HH) and altering
HH.NodeChildren(1).NodeChildren(1).String
but
HS = struct(HH);
HS.Axes.Box = 'off'
has no effect.
and digging in to
HS = struct(HH);
Hg = struct(HS.Heatmap.Grid);
and trying to set the grid properties has no visible effect.
heatmap objects are unfortunately barely customizable through supported interfaces.

Weitere Antworten (0)

Kategorien

Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by