Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

pylab_examples::date_index_formatter Namespace Reference


Detailed Description

When plotting daily data, a frequent request is to plot the data
ignoring skips, eg no extra spaces for weekends.  This is particularly
common in financial time series, when you may have data for M-F and
not Sat, Sun and you don't want gaps in the x axis.  The approach is
to simply use the integer index for the xdata and a custom tick
Formatter to get the appropriate date string for a given index.


Classes

class  MyFormatter

Variables

tuple ax = fig.add_subplot(111)
tuple fig = figure()
tuple formatter = MyFormatter(r.date)
tuple r = csv2rec('../data/msft.csv')


Generated by  Doxygen 1.6.0   Back to index