How do I create custom line styles for simple line plots?

14 ビュー (過去 30 日間)
Chad
Chad 2017 年 12 月 20 日
回答済み: engdancili 2022 年 10 月 21 日
Is there a way to create custom line styles? It will be very helpful to have control over dash and gap size or control spacing between dashes.I have seen some interesting work around this as in the link:
However the work around is for bar plot, it did not provide answers on how the new custom would be in a legend, or how to control its line-width. Therefore, the newly created custom line styles should be added to legend, should change its width or simply can be edited as the standard line styles of Matlab inside Matlab plot editor. It would be perfect if it can be added to Matlab standard line styles.

回答 (1 件)

engdancili
engdancili 2022 年 10 月 21 日
This answer seems to do the trick: Custom line style for plot function

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by