Logo Search packages:      
Sourcecode: matplotlib version File versions

pylab_examples::finance_work2 Namespace Reference


Detailed Description

You need a additional files to run this example.  Save the following
in the same dir as this file

  http://matplotlib.sourceforge.net/screenshots/helpers.py

  http://matplotlib.sourceforge.net/screenshots/msft_nasdaq_d.csv

  http://matplotlib.sourceforge.net/screenshots/__init__.py


Functions

def ema
def fill_over
def fmt_vol
def get_locator
def movavg
def random_signal

Variables

tuple allAxes = (axUpper, axMiddle, axMiddleVol, axLower)
string axesBG = '#f6f6f6'
tuple axLower = axes(rect3, axisbg=axesBG, sharex=axUpper)
tuple axMiddle = axes(rect2, axisbg=axesBG, sharex=axUpper)
tuple axMiddleVol = axMiddle.twinx()
tuple axUpper = axes(rect1, axisbg=axesBG)
tuple bars = volume_overlay(axMiddleVol, r.open, r.close, r.volume, alpha=0.5)
tuple datafile = matplotlib.get_example_data('goog.npy')
string figBG = 'w'
tuple formatter = IndexDateFormatter(date2num(r.date), '%b %d %y')
tuple ma20 = movavg(r.adj_close, 20)
tuple ma5 = movavg(r.adj_close, 5)
tuple N = len(r)
tuple nullfmt = NullFormatter()
string purple = '#660033'
tuple r = np.load(datafile)
list rect1 = [left, 0.7, width, 0.2]
list rect2 = [left, 0.3, width, 0.4]
list rect3 = [left, 0.1, width, 0.2]
tuple s = random_signal(N, tau=20)
tuple s1 = random_signal(N, 10)
tuple s2 = random_signal(N, 20)
 s3 = s2-s1
tuple t = axUpper.set_title('Google (GOOG)', fontsize=12)
tuple t1
tuple t2
tuple t3
tuple t4
int textsize = 8
int thresh = 4
string ticker = 'MSFT'
tuple vind = np.arange(N)
tuple volumeFmt = FuncFormatter(fmt_vol)
int xlim = 0


Generated by  Doxygen 1.6.0   Back to index