yt.extensions.eps_writer.DualEPS.circle

DualEPS.circle(radius=0.20000000000000001, loc=(0.5, 0.5), color=<pyx.color.cmyk instance at 0x10502d248>, linewidth=<pyx.style.linewidth instance at 0x1050128c0>)

Draws a circle in the current figure.

Parameters :

radius : float

Radius of the circle in units of figsize

loc : tuple of floats

Location of the circle’s center in units of figsize

color : pyx.color.*.*

Color of the circle stroke. Example: pyx.color.cmyk.white

linewidth : pyx.style.linewidth.*

Width of the circle stroke width. Example: pyx.style.linewidth.normal

Examples

>>> d = DualEPS()
>>> d.axis_box(xrange=(0,100), yrange=(1e-3,1), ylog=True)
>>> d.insert_image("image.jpg")
>>> d.circle(radius=0.1, color=pyx.color.cmyk.Red)
>>> d.save_fig()

Previous topic

yt.extensions.eps_writer.DualEPS.axis_box_yt

Next topic

yt.extensions.eps_writer.DualEPS.colorbar

This Page