Skip to content

Commit 85670a0

Browse files
authored
Fix plot ticks.
1 parent c9519d9 commit 85670a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

getnative/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def save_plot(self, vals):
239239
plot.style.use('dark_background')
240240
fig, ax = plot.subplots(figsize=(12, 8))
241241
ax.plot(range(self.min_h, self.max_h + 1, self.steps), vals, '.w-')
242-
dh_sequence = tuple(range(500, 1001, self.steps))
242+
dh_sequence = tuple(range(self.min_h, self.max_h + 1, self.steps))
243243
ticks = tuple(dh for i, dh in enumerate(dh_sequence) if i % (50 // self.steps) == 0)
244244
ax.set(xlabel="Height", xticks=ticks, ylabel="Relative error", title=self.filename, yscale="log")
245245
if self.show_plot:

0 commit comments

Comments
 (0)