How to increase line width of a comet plot
13 次查看(过去 30 天)
显示 更早的评论
Trying to increase the linewidth of a comet plot.
0 个评论
回答(1 个)
Walter Roberson
2022-12-6
Unfortunately there is no provision for that.
The code creates graphics objects with Tag 'head' (line object), 'tail' (animated line), and 'body' (animated line), but does not have any option to pass in or control sizes, and it runs the complete animation loop before returning.
What you can do is,
set(groot,'DefaultAnimatedLineLineWidth', SIZE)
and then call comet(), and then set it back again afterwards.
In theory you could set the axes default instead of groot default, but you probably need to "hold on" the axes for that to work.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!