MATLAB Answers

How to: xtick visibility

Asked by Hello kity on 16 Jan 2013

Hi

how can i make xtick line visible: example, at 6 it is visible, but where there is data it is not...

  0 Comments

Tags

Products

No products are associated with this question.

1 Answer

Answer by José-Luis
on 16 Jan 2013
Edited by José-Luis
on 16 Jan 2013
 Accepted answer
figure(1);
aH = axes;
hist(randn(1,1000));
set(aH,'TickDir','out');

Alternatively:

figure(2);
aH = axes;
hist(randn(1,1000));
h = findobj(aH,'Type','patch');
set(h,'facealpha',0.5)

  2 Comments

Hello kity on 16 Jan 2013

first one did it, not what i was asking but lines below the axis is also fine :)

thank you

José-Luis
on 16 Jan 2013

My pleasure.


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today