Skip to content

Commit 38d49d7

Browse files
authored
docs: fix usage (#7)
1 parent 6c5684d commit 38d49d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def test_benchmark(artifacts):
3333
elapsed.append(end_time - start_time)
3434

3535
plt.scatter(times, elapsed)
36-
plt.savefig(artifacts.dir / 'benchmark.png')
36+
with artifacts.open('benchmark.png') as f:
37+
plt.savefig(f)
3738
```
3839

3940
```

0 commit comments

Comments
 (0)