yt.extensions.eps_writer.DualEPS.axis_box

DualEPS.axis_box(xrange=(0, 1), yrange=(0, 1), xlabel='', ylabel='', xlog=False, ylog=False, tickcolor=None, bare_axes=False, pos=(0, 0), xaxis_side=0, yaxis_side=0)

Draws an axis box in the figure.

Parameters :

xrange : tuple of floats

The min and max of the x-axis

yrange : tuple of floats

The min and max of the y-axis

xlabel : string

Label for the x-axis

ylabel : string

Label for the y-axis

xlog : boolean

Flag to use a logarithmic x-axis

ylog : boolean

Flag to use a logarithmic y-axis

tickcolor : pyx.color.*.*

Color for the tickmarks. Example: pyx.color.cmyk.black

bare_axes : boolean

Set to true to have no annotations or tick marks on all of the axes.

pos : tuple of floats

(x,y) position in centimeters of the origin in the figure

xaxis_side : integer

Set to 0 for the x-axis annotations to be on the left. Set to 1 to print them on the right side.

yaxis_side : integer

Set to 0 for the y-axis annotations to be on the bottom. Set to 1 to print them on the top.

Examples

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

Previous topic

yt.extensions.eps_writer.DualEPS

Next topic

yt.extensions.eps_writer.DualEPS.axis_box_yt

This Page