def plot_sector_exposures_longshort(long_exposures, short_exposures,<EOL>sector_dict=SECTORS, ax=None):
if ax is None:<EOL><INDENT>ax = plt.gca()<EOL><DEDENT>if sector_dict is None:<EOL><INDENT>sector_names = SECTORS.values()<EOL><DEDENT>else:<EOL><INDENT>sector_names = sector_dict.values()<EOL><DEDENT>color_list = plt.cm.gist_rainbow(np.linspace(<NUM_LIT:0>, <NUM_LIT:1>, <NUM_LIT:11>))<EOL>ax.stackplot(long_exposures[<NUM_LIT:0>].index, long_exposures,<EOL>labels=sector_names, colors=color_list, alpha=<NUM_LIT>,<EOL>baseline='<STR_LIT>')<EOL>ax.stackplot(long_exposures[<NUM_LIT:0>].index, short_exposures,<EOL>colors=color_list, alpha=<NUM_LIT>, baseline='<STR_LIT>')<EOL>ax.axhline(<NUM_LIT:0>, color='<STR_LIT:k>', linestyle='<STR_LIT:->')<EOL>ax.set(title='<STR_LIT>',<EOL>ylabel='<STR_LIT>')<EOL>ax.legend(loc='<STR_LIT>', frameon=True, framealpha=<NUM_LIT:0.5>)<EOL>return ax<EOL>
Plots outputs of compute_sector_exposures as area charts

Parameters
----------
long_exposures, short_exposures : arrays
    Arrays of long and short sector exposures (output of
    compute_sector_exposures).

sector_dict : dict or OrderedDict
    Dictionary of all sectors
    - See full description in compute_sector_exposures