hi all,

when i make any numeric scatter plot containing floats, the formatted tick labels always have leading zeros, e.g "0.5" as opposed to ".5" in the labels.

for example:

x = rand(10)
scatter(x,x)

is there any way to change this to remove the leading zeros? i have tried:

s = subplot(111)
majorFormatter = FormatStrFormatter('%0.1f')
s.xaxis.set_major_formatter(majorFormatter)
scatter(x,x)

but it does not work. i also tried "%.f" but it does not work either. the matlab default is to plot without the leading zero and i am trying to recreate this.

thank you.