Smooth line end?
显示 更早的评论

Hi
Is there a way to smooth out the edges of piecewise-linear lines? For example, in the following figure, I see several clunky points on my curve. This is because matlab is drawing a rectangle for each line segment. Whenever I use thick lines or few points to draw, this seems to happen.
I am looking for a way to smooth both ends of rectangles hopefully within 'plot' environment.
Thanks, Richard
回答(1 个)
Steven Lord
2018-5-22
2 个投票
If you're using release R2015b or later, depending how you're creating your plot, the LineJoin property may be of use to you.
类别
在 帮助中心 和 File Exchange 中查找有关 Labels and Styling 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!