Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

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

Hello kity

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.

José-Luis

Contact us