Clear Filters
Clear Filters

Setting y-axis in figure

2 views (last 30 days)
FAWAZ FAREAD AL BAKRI
FAWAZ FAREAD AL BAKRI on 15 Jul 2022
Commented: Voss on 16 Jul 2022
Hello all...
I would like to set the y-axis as shown in thisFigure.

Accepted Answer

Voss
Voss on 15 Jul 2022
ax = gca();
set(ax, ...
'YLim',[1 1e10], ...
'YScale','log', ...
'Box','on', ...
'XGrid','on', ...
'YGrid','on', ...
'YMinorGrid','off', ...
'YMinorTick','off', ...
'TickLength',[0.02 0.02], ...
'GridLineStyle',':', ...
'GridColor',[0 0 0], ...
'GridAlpha',1, ...
'FontSize',12)
ylabel('Infected cell y')
  2 Comments
FAWAZ FAREAD AL BAKRI
FAWAZ FAREAD AL BAKRI on 16 Jul 2022
Thank you very much, it works perfectly.
Voss
Voss on 16 Jul 2022
You're welcome!

Sign in to comment.

More Answers (0)

Categories

Find more on Language Fundamentals in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!