Linestyle with plot3

12 ビュー (過去 30 日間)
Mma Kenya
Mma Kenya 2017 年 6 月 29 日
コメント済み: Mma Kenya 2017 年 6 月 29 日
Hi everyone,
how to change linestyle when using plot3. I am trying to plot a dashed dot line (-----) between two points, it is not working. When I used:
plot3([x1,x2],[y1,y2],[z1,z2],'linewidth',3,'k--'),
only the linewidth and the color change but the linestyle is still solid. Please, would someone explain me how to set changes. Thanks a lot for advance. All the best !!!
  1 件のコメント
Stephen23
Stephen23 2017 年 6 月 29 日
Look at the list of permitted syntaxes for plot3: the one you are using, with the linestyle following some name-value pairs is not listed. The one that Walter Roberson uses, where the linestyle precedes some name-value pairs is listed. You should always read the documentation.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 6 月 29 日
plot3([x1,x2],[y1,y2],[z1,z2],'k--','linewidth',3),
  5 件のコメント
Walter Roberson
Walter Roberson 2017 年 6 月 29 日
Mma Kenya
Mma Kenya 2017 年 6 月 29 日
Thank you very much for your help !!!

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by