Add new comment

When I try a really simple plot like:

t = -4:0.1:4;
x = (abs(t) < 2).*(2-abs(t));
plot(t,x,'k')
centeraxes(gca)
matlab2tikz('test1.tikz')

the horizontal line and all the tick mark labels disappear. Any ideas?

Addthis