In [1]:
from OfferPandas import Frame, load_offerframe
import sys
#sys.path.append('/home/nigel/python/Tessen/')
import Tessen
import matplotlib.cm as cm

In [4]:
energy = load_offerframe('offers20131212.csv')
reserve = load_offerframe('generatorreserves20131212.csv')

filters = {"Trading_Period": 27, "Island_Name": "North Island", "Generation_Type": "Hydro"}
fan_data = Tessen.create_fan(energy, reserve, force_plsr_only=True, fName=None, break_tp=False, **filters)


I'm beginning to create fan curves, I estimate I'll need to do
at least 46 of these which may take at least 0.368 seconds, hold tight
I successfully calculated 113 fans in 0 seconds

In [5]:
Tessen.plot_fan(fan_data, filters={"Reserve_Type": "SIR", "Company": "MRPL"}, set_xlim=1000, set_ylim=300, energy_cleared=500, reserve_cleared=75, fName='../example_fan.png', fixed_colours=True, energy_colour=cm.OrRd, ilmap={10.:50, 35.:100})


 I'm beginning to plot the fan now, I estimate this will
    take me at least 1 seconds
<built-in method values of dict object at 0x7f1f3575ae88>
I've completed the fan curve and optionally saved it to ../example_fan.png, I
    actually took 0 seconds to complete this curve
Out[5]:
(<matplotlib.figure.Figure at 0x7f1f34c62250>,
 <matplotlib.axes.AxesSubplot at 0x7f1f34cc21d0>)

In [3]: