Plot functions

Wrappers around matplotlib.pyplot

finac.plot.account_pie(tp=None, asset=None, mb=0, base=None, passive=None, group_by=None, shadow=True, autopct='%1.1f%%', **kwargs)

Plot pie chart of the account balances

Parameters:
  • tp – account types to include
  • mb – min balace (or section goes to “other”)
  • base – base asset to recalc amounts (default: usd)
  • shadow
  • autopct
  • **kwargs – passed as-is to matplotlib.pyplot.pie
finac.plot.account_plot(account=None, tp=None, start=None, end=None, step=1, base=None, **kwargs)

Plot account balance chart for the specified time range

Either account code or account types must be specified

Parameters:
  • account – account code
  • tp – account type (or types)
  • start – start date/time, default: first day of current month
  • end – end date/time, if not specified, current time is used
  • step – chart step in days
  • base – base currency
  • **kwargs – passed as-is to matplotlib.pyplot.plot