question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi I tried to run the simple example from the doc:

import bt
import pandas as pd

# fetch some data
data = bt.get('spy,agg', start='2010-01-01')
print(data.tail())

s = bt.Strategy('s1', [bt.algos.RunMonthly(),
                       bt.algos.SelectAll(),
                       bt.algos.WeighEqually(),
                       bt.algos.Rebalance()])

# create a backtest and run it
test = bt.Backtest(s, data)
res = bt.run(test)

# first let's see an equity curve
res.plot()

But no graph appears as indicated in the manual. I just get:

<AxesSubplot:title={'center':'Equity Progression'}>

Then with

res.plot_histogram()

I get an error message:

AttributeError: 'Rectangle' object has no property 'normed'

and with:

res.plot_security_weights()

Nothing happens.

Any suggestion ? Thx.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

0reactions
timkpainecommented, May 15, 2021

this was fixed a while ago Screen Shot 2021-05-15 at 14 26 47

Read more comments on GitHub >

github_iconTop Results From Across the Web

Known issues with Microsoft Graph
This article describes known issues and limitations with Microsoft Graph and provides workarounds when possible.
Read more >
Issues · microsoftgraph/microsoft-graph-docs - GitHub
Documentation for the Microsoft Graph REST API. Contribute to microsoftgraph/microsoft-graph-docs development by creating an account on ...
Read more >
Issue Graph | Atlassian Marketplace
Visualizes your issues' dependencies at once. Exportable graphs as SVG or PNG; Automatic arrangement of the graph; Shows issues as graph node and...
Read more >
Chapter 4. Graph problems - Classic Computer Science ...
A graph is an abstract mathematical construct that is used for modeling a real-world problem by dividing the problem into a set of...
Read more >
Graph: Hard Problems - Algorithm Repository
Graph : Hard Problems. Clique · Independent Set · Vertex Cover · Traveling Salesman Problem · Hamiltonian Cycle · Graph Partition.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found