File Exchange

image thumbnail

ticklabelinside

version 1.0 (2.83 KB) by

Moves tick labels to the inside of the plot axis.

9 Downloads

Updated

View License

HH=TICKLABELINSIDE(H,AX,CORNERFLAG) is the calling form.
HH contains handles to the text objects created.
H is the handle to the figure or axis of interest (default is GCF).
AX is 'x' 'y' or 'xy' (default) to indicate which axis labels should be moved in.
CORNERFLAG is 1 to print labels at the corners, 0 to skip them for clarity (default)

Comments and Ratings (4)

KAB

KAB (view profile)

Had to change line 110 to:
ticklabeldbl=str2double(ticklabel);
from
ticklabeldbl=str2num(ticklabel);
to get function to work in R2015a. Otherwise worked well.

Also would be nice if it handled YDir = reverse, XDir = reverse.

Good for plots with default settings.

Improvement request: please add support for XAxisLocation = top, YAxisLocation = right.

Igor

Igor (view profile)

Works OK, but only till you try to zoom.

MATLAB Release
MATLAB 7.12 (R2011a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video