This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numpy import * | |
from matplotlib.pylab import * | |
import matplotlib.dates as mdates | |
data = loadtxt('quotes.csv', delimiter=',') | |
# Epoch time to number (matlab and matplotlib format) | |
TIMEZONE_CORRECTION = 60.0 * 60 * 5 | |
time = mdates.epoch2num(data[:, 0] / 1000.0 - TIMEZONE_CORRECTION) | |
bid = data[:, 1] |