How to increase line width of a comet plot

13 次查看(过去 30 天)
Trying to increase the linewidth of a comet plot.

回答(1 个)

Walter Roberson
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.

类别

Help CenterFile Exchange 中查找有关 Animation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by