Is it possible to control the gap in dashed line style?

25 views (last 30 days)
Is it possible to control the gap between line segments for dashed line style?

Answers (1)

dpb
dpb on 10 Jun 2015
Edited: dpb on 10 Jun 2015
No, per the doc there are the three (other than '-' and 'none') linestyle choices which, being one of the specific list of allowed string values, must match one of those given. There are no properties relating to the details of the line under that, hence there's no way to change that behavior.
All you can do is draw a specific line from the line primitive itself which will then actually be a set of individual lines.
All in all, the handle graphics objects really aren't very flexible; a pet peeve of mine is there is still no set of automagic hatch patterns.

Categories

Find more on Graphics Object Properties in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!