spacepy_logo

Previous topic

spacepy.plot.utils.smartTimeTicks

Next topic

PoPPy - Point Processes in Python

This Page

spacepy.plot.utils.timestamp

spacepy.plot.utils.timestamp(position=[1.003, 0.01], size='xx-small', draw=True, **kwargs)[source]

print a timestamp on the current plot, vertical lower right

Parameters:

position : list

position for the timestamp

size : string (optional)

text size

draw : Boolean (optional)

call draw to make sure it appears

kwargs : keywords

other keywords to axis.annotate

Examples

>>> import spacepy.plot.utils
>>> from pylab import plot, arange
>>> plot(arange(11))
[<matplotlib.lines.Line2D object at 0x49072b0>]
>>> spacepy.plot.utils.timestamp()