yt.extensions.eps_writer.DualEPS.title_box

DualEPS.title_box(text, color=<pyx.color.cmyk instance at 0x10502d200>, bgcolor=<pyx.color.cmyk instance at 0x10502d248>, loc=(0.02, 0.97999999999999998), halign=<pyx.text.halign instance at 0x1050ad5f0>, valign=<pyx.text.valign instance at 0x1050b1170>)

Inserts a box with text in the current figure.

Parameters :

text : string

String to insert in the textbox.

color : pyx.color.*.*

Color of the text. Example: pyx.color.cmyk.black

bgcolor : pyx.color.*.*

Color of the textbox background. Example: pyx.color.cmyk.white

loc : tuple of floats

Location of the textbox origin in units of the figure size.

halign : pyx.text.halign.*

Horizontal alignment of the text. Example: pyx.text.halign.left

valign : pyx.text.valign.*

Vertical alignment of the text. Example: pyx.text.valign.top

Examples

>>> d = DualEPS()
>>> d.axis_box(xrange=(0,100), yrange=(1e-3,1), ylog=True)
>>> d.insert_image("image.jpg")
>>> d.title_box("Halo 1", loc=(0.05,0.95))
>>> d.save_fig()

Previous topic

yt.extensions.eps_writer.DualEPS.scale_line

Next topic

Function List

This Page