フィルターのクリア

How to plot a dotted black line (without using yline function)?

32 ビュー (過去 30 日間)
Anne Nguyen
Anne Nguyen 2019 年 9 月 29 日
コメント済み: Adam Danz 2019 年 9 月 29 日
How do I plot a horizontal dotted black line going from 0 to the maximum value of x? The height of the line should be 0. I cannot use the yline function. Thank you!
  4 件のコメント
Adam Danz
Adam Danz 2019 年 9 月 29 日
Darova's ide:
yln = plot([0,max(xlim())],[0,0], 'k--');
I like Rik's idea, too. Here's some background info
Adam Danz
Adam Danz 2019 年 9 月 29 日
or,
matlab.graphics.chart.decoration.ConstantLine('InterceptAxis', 'y', 'Value', 0.5,'Parent',gca, 'LineStyle','--','Color', 'k')

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by