Skip to content

Commit 5776eef

Browse files
committed
Made review changes
1 parent 0e6f842 commit 5776eef

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/plot.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def stacked_barh_plot(
164164
plt.rcParams.update({"font.family": "monospace", "figure.dpi": 300})
165165

166166
height = max(2.5, 1 + len(data) * 0.5)
167-
ax = plt.subplots(figsize=(8, height), layout="constrained")
167+
fig, ax = plt.subplots(figsize=(8, height), layout="constrained")
168168

169169
colors = colormaps["tab10"].colors
170170
left = [0] * len(data)
@@ -201,10 +201,9 @@ def stacked_barh_plot(
201201

202202
plt.suptitle(title)
203203
plt.annotate(
204-
f"Creative Commons (CC)\n"
205-
f"bar x scale: {xscale or 'linear'}, data from {args.quarter}"(
206-
0.95, 5
207-
),
204+
f"Creative Commons (CC)\nbar x scale: {xscale}, data from"
205+
f" {args.quarter}",
206+
(0.95, 5),
208207
xycoords=("figure fraction", "figure points"),
209208
color="gray",
210209
fontsize="x-small",

0 commit comments

Comments
 (0)