Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Add legend to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maliarov committed Apr 28, 2022
1 parent 22aad2e commit 4945e5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions comparizon/mtest_dates_simpleplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ def get_random_values(x, y):
fig = Figure()

xvalues, yvalues = get_random_values(1, 10000)
fig.plot(xvalues, yvalues, color='red', linewidth=5)
fig.plot(xvalues, yvalues, color='red', linewidth=5, label='line1')

xvalues, yvalues = get_random_values(1, 10000)
fig.plot(xvalues, yvalues, color='blue', linewidth=5)
fig.plot(xvalues, yvalues, color='blue', linewidth=5, label='line1')

fig.legend()

fig.save(f'{test_folder}/graph{i}.png')

Expand Down

0 comments on commit 4945e5c

Please sign in to comment.