Skip to content

Commit d3a0bec

Browse files
Feedback from review
1 parent 28ed32b commit d3a0bec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/scripts/nvbench_plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ def plot_entries(entries, title=None, output=None, dark=False):
239239
colors = [bench_colors[bench] for bench in bench_names]
240240

241241
fig_height = max(4.0, 0.3 * len(entries) + 1.5)
242-
style = "dark_background" if dark else None
243-
with plt.style.context(style) if style else plt.style.context("default"):
242+
style = "dark_background" if dark else "default"
243+
with plt.style.context(style):
244244
fig, ax = plt.subplots(figsize=(10, fig_height))
245245

246246
y_pos = range(len(labels))

0 commit comments

Comments
 (0)