Skip to content

Commit

Permalink
Update port.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Sep 3, 2023
1 parent 0b6aaa2 commit d85c79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tinycta/port.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def metrics(self, days=252):
"Annualized Return (%)": 100 * days * self.returns.mean(),
}

def plot(self, com=100, title="", **kwargs):
def plot(self, com=100, title="", height=800, **kwargs):
def scatter(ts, name):
return go.Scatter(
x=ts.index,
Expand Down Expand Up @@ -198,7 +198,7 @@ def scatter(ts, name):
)

fig.update_layout(
{"title": title, "showlegend": True, "autosize": True, "height": 800}
{"title": title, "showlegend": True, "autosize": True, "height": height}
)

return fig

0 comments on commit d85c79a

Please sign in to comment.