Made a function wrapper to examples/api/two_scales.py

Hi thomas 

How are you? I was wondering if you could come for the Spark meetup at Bloomberg? Would love to have you. Also remember pydata during strata. 

Cheers Guillermo 


> On Sep 27, 2014, at 4:42 PM, Thomas A Caswell <notifications@github.com> wrote:
> 
> In examples/api/two_scales.py:
> 
> > -# Make the y-axis label and tick labels match the line color.
> > -ax1.set_ylabel('exp', color='b')
> > -for tl in ax1.get_yticklabels():
> > -    tl.set_color('b')
> > +s2 = np.sin(2*np.pi*t)
> > +
> > +#Specify your parameter dictionary
> > +d1 = {'style': '-', 'color' : 'r'}
> > +d2 = {'style': '.', 'color' :'b'}
> > +
> > +#create your axes
> > +fig, ax = plt.subplots()
> > +ax2 = ax.twinx()
> > +
> > +#Call the function
> > +two_scales(ax, ax2, t, s1, s2, d1, d2)
> plt.show() should go here.
> 
> —
> Reply to this email directly or view it on GitHub.