Effacer les filtres
Effacer les filtres

I want to use ezpolar with line colour, style, width control. Is this possible?

1 vue (au cours des 30 derniers jours)
I want to use ezpolar with line colour, style, width control. Is this possible?

Réponse acceptée

Mike Garrity
Mike Garrity le 12 Mai 2015
Modifié(e) : Mike Garrity le 12 Mai 2015
The ezpolar command has a return argument. This is a handle to the graphics object it creates. You can set properties on that:
h = ezpolar('sin(2*t).*cos(3*t)',[0 pi])
h.LineStyle = ':'
h.Color = 'green'
h.LineWidth = 8
Note that the "dot notation" syntax was introduced in 2014b. The following version would work in earlier releases too.
h = ezpolar('sin(2*t).*cos(3*t)',[0 pi])
set(h,'LineStyle', ':', 'Color', 'green', 'LineWidth', 8)
You can learn more about working with handles to graphics objects starting at this doc page .

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Identification dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by