Draws a scale line in the current figure.
Parameters : | size : float
label : string
loc : tuple of floats
labelloc : string
color : pyx.color.*.*
linewidth : pyx.style.linewidth.*
|
---|
Examples
>>> d = DualEPS()
>>> d.axis_box(xrange=(0,100), yrange=(1e-3,1), ylog=True)
>>> d.insert_image("image.jpg")
>>> d.scale_line(size=0.2, label="1 kpc", loc=(0.05, 0.1))
>>> d.save_fig()