A very useful program; however, it doesn't seem to work when I move the y-axis to the right with set(gca,'yaxislocation','right') - does anyone know how to do this?
The reason I ask is because I manually create colourbars with imagesc (so I have better control over the tick labels etc.) and I want the yaxis to sit on the right...
Thanks for the file!
But I found a small bug:
If I make my tick labels beforehand then use this version of the function:
format_tick(h,tickx,ticky,[],[],[],[],offset);
It re-assigns my tick labels to the default.
I did a quick-fix by copying the lines tickposx = get(h,'XTick'); and
'set(h,'XTickLabel',tickposx);' (located around line 134), and pasting them into the preceding if-statement. then I deleted the extra 'set(h,'XTickLabel',tickposx); '. However, beware! This fix may have introduced other errors that I haven't caught...
Comment only