Oh, TMW has done it again -- they've buried stuff inside opaque (to the user) objects that should be visible. I wish they would quit doing this... :(
If you don't have it, go to FEX and download Yair Altman's utility for finding hidden objects...it's the only tool readily available for such.
From it
>> hHM=heatmap(xx,hh,ss)
hHM =
HeatmapChart with properties:
XData: {48×1 cell}
YData: {100×1 cell}
ColorData: [100×48 double]
Show all properties
>> undocumented(hHM)
ans =
struct with fields:
ApplicationData: [1×1 struct]
Axes: '???'
...
DefaultPropMap_Internal: [0×0 struct]
Description: 'HeatmapChart'
DescriptionMode: 'manual'
Description_I: 'HeatmapChart'
...
MissingDataValue: '???'
NodeChildren: [3×1 Graphics]
NodeParent: [1×1 ScribeLayer]
NotUsingTableForData: '???'
...
>>
Ah!! That looks interesting--let's see what we can tell about it...
>> hHM.NodeChildren
ans =
3×1 graphics array:
ColorBar
ColorBar
Axes
>>
And we were able to find an axes object.
>> hAx=hHM.NodeChildren(3)
hAX =
Axes with properties:
XLim: [17 16.5]
YLim: [0 1]
XScale: 'linear'
YScale: 'linear'
GridLineStyle: '-'
Position: [0.1300 0.1100 0.7179 0.8150]
Units: 'normalized'
...
>>
Under it we can find and set the tick label properties including rotation...
hAx.XAxis.TickLabelRotation=0;
IMO, there's absolutely no excuse for TMW having done such stuff.
2 Comments
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/554917-heatmap-axis-labels-printing-vertically#comment_915862
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/554917-heatmap-axis-labels-printing-vertically#comment_915862
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/554917-heatmap-axis-labels-printing-vertically#comment_916033
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/554917-heatmap-axis-labels-printing-vertically#comment_916033
Sign in to comment.