How to magnify y-axis to see plot more clearly

25 ビュー (過去 30 日間)
Zuha Yousuf
Zuha Yousuf 2019 年 8 月 22 日
コメント済み: AMIT KUMAR 2023 年 10 月 21 日
So I am averaging some signals over time, and plotting it to get the figure I've attached.
I want to stretch the y-axis in such a way that I am able to view the little curves at the start of the figure more clearly. I tried using ylim, but I get an error saying I have too many output arguments. Could I stretch the y axis somehow?
Capture.PNG
  3 件のコメント
Himanshu Saxena
Himanshu Saxena 2020 年 6 月 17 日
編集済み: Himanshu Saxena 2020 年 6 月 17 日
I also have a similar question.
Considering the same example, I want to strectch the y-axis from -0.5 to 0.5 but I also want to have the remaining y-axis labels i.e., i want to plot a graph with y-axis ranging from -1.5 to 1.5 but with stretched -0.5 to 0.5 axis range.
Though I can change the y-axis to log scale to highlight the variability between -0.5 to 0.5 range but it changes the appearance of the graph which I don't want.
Best!
AMIT KUMAR
AMIT KUMAR 2023 年 10 月 21 日
I too have a similar problem...... if someone has resolved the issue kindly help me out.
Thank You.

サインインしてコメントする。

回答 (1 件)

Madan Ghimire
Madan Ghimire 2019 年 8 月 22 日
You can use the axis function to define your desired axis. Or you can determine the thickness of your plot using the following functions.
axis([0,200,-1200,500]);
or
plot(time,amplitude, 'LineWidth', 5)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by