<s> import numpy as np <EOL> import matplotlib . pyplot as plt <EOL> import pandas . util . testing as t <EOL> import pandas . stats . moments as m <EOL> def test_series ( n = <NUM_LIT:1000> ) : <EOL> t . N = n <EOL> s = t . makeTimeSeries ( ) <EOL> return s <EOL> def plot_timeseries ( * args , ** kwds ) : <EOL> n = len ( args ) <EOL> fig , axes = plt . subplots ( n , <NUM_LIT:1> , figsize = kwds . get ( '<STR_LIT:size>' , ( <NUM_LIT:10> , <NUM_LIT:5> ) ) , <EOL> sharex = True ) <EOL> titles = kwds . get ( '<STR_LIT>' , None ) <EOL> for k in range ( <NUM_LIT:1> , n + <NUM_LIT:1> ) : <EOL> ax = axes [ k - <NUM_LIT:1> ] <EOL> ts = args [ k - <NUM_LIT:1> ] <EOL> ax . plot ( ts . index , ts . values ) <EOL> if titles : <EOL> ax . set_title ( titles [ k - <NUM_LIT:1> ] ) <EOL> fig . autofmt_xdate ( ) <EOL> fig . subplots_adjust ( bottom = <NUM_LIT> , top = <NUM_LIT> ) </s>
