Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
cdummett committed Jan 30, 2024
1 parent 7ded47a commit 0d72ec5
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions vega_sim/tools/scenario_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,21 +455,6 @@ def plot_price_comparison(
ax0.set_ylim(ax0.get_ylim())
ax0.plot(external_price_series, linewidth=0.8, alpha=0.8)

ep_volatility = external_price_series.var() / external_price_series.size
mp_volatility = mark_price_series.var() / mark_price_series.size

ax0.text(
x=0.1,
y=0.1,
s=(
f"external-price volatility = {round(ep_volatility, 1)}\nmark-price"
f" volatility = {round(mp_volatility, 1)}"
),
fontsize=8,
bbox=dict(facecolor="white", alpha=1),
transform=ax0.transAxes,
)

ax0.set_ylabel("PRICE")
ax0.legend(labels=["external price", "mark price"])

Expand Down

0 comments on commit 0d72ec5

Please sign in to comment.