No; removing a tick clears the associated label; there's an inbuilt 1:1 correlation; "no tickee, no lablee".
To do this would require either
- drawing the ticks specifically; as you note there isn't sufficient granularity in HG2 to specify individual tick lengths or colors to simulate the effect, or
- deleting the desired ticks then text in the labels for those locations
Oh, alternatively, you could probably overlay two axes to achieve the combined effect between the two...
hAx=axes;
xt=hAx.XTick;
hAx.XTick=xt(1:2:end);
hAx(2)=axes('position',hAx.Position');
hAx(1).XTickLabel=[];
hAx(2).TickLength=[0,0];
hAx(2).YTick=[];
axes(hAx(1))
results in
Overall, one of the first two options is probably simpler in the end...
Best Answer