semilogy([​34,34],[0,​22222]) does not show vertical line

14 ビュー (過去 30 日間)
raym
raym 2018 年 2 月 13 日
回答済み: raym 2018 年 2 月 13 日
I need to plot a vertical line in a figure with log y-axis:
semilogy([34,34],[0,22222]);
But the figure does not show the vertical line.
For horizontal line,
semilogy([34,66],[22222,22222]);
This command works and shows an horizontal line.
Can anyone help me, thanks in advance.
  1 件のコメント
raym
raym 2018 年 2 月 13 日
For the non-log plot, I can plot the vertical line using "plot" or "line" command, but if I hold on and make y-axis in log, then these vertical line disappeared.

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

採用された回答

raym
raym 2018 年 2 月 13 日
I got it. I cannot use zero in log plot, use 0.00000001 or so instead.

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange图形对象 についてさらに検索

Community Treasure Hunt

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

Start Hunting!