Skip to content

Commit

Permalink
Fix report topview orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Oct 29, 2023
1 parent 76d48df commit ed4a2ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opensfm/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,9 +937,11 @@ def save_topview(
)
plt.yticks(
[im_size_y, im_size_y / 2, 0],
[0, f"{int(size_y / 2):.0f}", f"{size_y:.0f} meters"],
[f"{size_y:.0f} meters", f"{int(size_y / 2):.0f}", 0],
fontsize="small",
)
plt.gca().invert_yaxis()

with io_handler.open(os.path.join(output_path, "topview.png"), "wb") as fwb:
plt.savefig(
fwb,
Expand Down

0 comments on commit ed4a2ec

Please sign in to comment.