Skip to content

Commit 71eff49

Browse files
committed
fix legend background
1 parent 874f752 commit 71eff49

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
Binary file not shown.

price-characterisation/price-analysis.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
# %% [markdown]
101101
# ## Daily Price Spread, 2012-2021
102102

103+
103104
# %%
104105
# daily min max
105106
def plot_daily_price_spread(prices: pd.DataFrame) -> None:
@@ -177,6 +178,8 @@ def plot_daily_price_spread(prices: pd.DataFrame) -> None:
177178
loc="lower center",
178179
bbox_to_anchor=(0.5, -0.05),
179180
ncol=3,
181+
edgecolor="white",
182+
facecolor="white",
180183
)
181184
leg.get_frame().set_linewidth(0.0)
182185
if rolling_mean.index.year[-1] == 2023:
@@ -192,9 +195,7 @@ def plot_daily_price_spread(prices: pd.DataFrame) -> None:
192195
fig = plot_daily_price_spread(prices)
193196
if not (plot_dir := Path("plots", "historical", "spreads")).exists():
194197
plot_dir.mkdir(parents=True)
195-
fig.savefig(
196-
Path(plot_dir, "historical_daily_price_spreads.pdf")
197-
)
198+
fig.savefig(Path(plot_dir, "historical_daily_price_spreads.pdf"))
198199

199200
# %% [markdown]
200201
# ## Volatility, 2012-2021

0 commit comments

Comments
 (0)