loganhotz / edan

economic data analysis toolkit, with an emphasis on NIPA accounts and BLS labor aggregates
0 stars 0 forks source link

BUG: When more than two methods are plotted at once, methods after the second fall onto chart. #13

Closed loganhotz closed 3 years ago

loganhotz commented 3 years ago

When plotting three or more methods on a single chart through the method parameter, e.g.

gdp.plot(
    method=('difa%', 'yryr%', 'diff%'),
    subs=False,
    start='1/1/1980'
)

the third (and later methods) are drawn on the axes area.

To fix this, the amount the axes is squeezed vertically (currently 90%) should be a function of the number of rows in the legend entry. Size of the legend text could possibly be altered, too. legend_on_axes

loganhotz commented 3 years ago

addressed with commit 0295244