i am reading a csv file of stock date with daily data (weekdays) and dates
represented as strings. when i convert dates to datetime format, weekends
and holidays are introduced as nans leaving holes in the plot. web
searches led me to this.
is this still the case? seems like a lot of trouble for such a common
inconvenience.
from mpl documentation
http://matplotlib.org/examples/pylab_examples/date_index_formatter.html
"""
> 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.
> """
this was originally posted to pydata
https://groups.google.com/forum/?fromgroups#!topic/pydata/LiHQqurY440
thanks in advance. Bill
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users