Skip to content

Commit 26bfbeb

Browse files
committed
changed how plots look
1 parent 4d6d704 commit 26bfbeb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

model/distributions/sphere/watson/benchmark_fib_starts.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
44
sudo "$(poetry run which python)" -m pyperf system tune
55
PYTHONPATH=$PWD poetry run python model/distributions/sphere/watson/benchmark_fib_starts.py
6+
7+
8+
you can also plot from existing JSON files by setting the environment variable:
9+
PLOT_FROM_JSON=1 PYTHONPATH=$PWD poetry run python model/distributions/sphere/watson/benchmark_fib_starts.py
610
'''
711

812
import json
@@ -106,6 +110,7 @@ def _plot_rows(rows, title, filename, x_label, log_x=False, log_y=False):
106110
markers=True,
107111
log_x=log_x,
108112
log_y=log_y,
113+
labels={"time": "time in s"},
109114
)
110115
fig.update_layout(
111116
legend=dict(
@@ -114,12 +119,14 @@ def _plot_rows(rows, title, filename, x_label, log_x=False, log_y=False):
114119
y=1.02,
115120
xanchor="left",
116121
x=0,
117-
)
122+
),
123+
font=dict(size=26),
118124
)
119125
if log_x:
120126
fig.update_xaxes(dtick=1)
121127
if log_y:
122128
fig.update_yaxes(dtick=1)
129+
fig.update_layout(legend_title_text="")
123130

124131
try:
125132
fig.write_image(f"{_sanitize_filename(filename)}.svg")

0 commit comments

Comments
 (0)