Focusing auto axis to one curve over multiple

3 views (last 30 days)
Hi everyone,
I know I can set limits to a plot, using *.Ylim for example, or I can also leave it without any precision so it will be automatically set up. My problem is I have some datas that are wrong and I would like to know If it's possible to focus this auto axis on one or two of my curves instead of all my curves. In my example :
I would then focus the axis dimension on the blue curve only.
Thanks in advance
Renaud :)

Accepted Answer

Ameer Hamza
Ameer Hamza on 29 Sep 2020
You need to turn off the visibility of the curve you want to exclude. For example
p1 = plot(1:10);
hold on
p2 = plot(21:30);
after figure is created, run following line.
p2.Visible = 'off'
  4 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Two y-axis in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!