yt.extensions.eps_writer.DualEPS.insert_image

DualEPS.insert_image(filename, pos=(0, 0))

Inserts a JPEG file in the figure.

Parameters :

filename : string

Name of the JPEG file

pos : tuple of floats

Position of the origin of the image in centimeters

Examples

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

Previous topic

yt.extensions.eps_writer.DualEPS.hello_world

Next topic

yt.extensions.eps_writer.DualEPS.insert_image_yt

This Page