Skip to content

Commit

Permalink
tiny upgrade to the plotting part of planar c fit
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszwilinski committed Apr 13, 2022
1 parent 19eb955 commit a0ad2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fit_planar_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ def objective_function(c, data):

plt.bar(x, height=heights, width=widths, align="edge", alpha=0.5, label="data")
plt.bar(x, height=heights_approx, width=widths, align="edge", alpha=0.5, label="optimal probabilities")
plt.plot(z, y, "r--", label="optimal affinity function")

for _x in x[1:]:
plt.axvline(_x, color='white', linewidth=1.4)
plt.plot(z, y, "r--", label="optimal affinity function")

plt.ylabel("Probability")
plt.ylabel("Distance (km)")
Expand Down

0 comments on commit a0ad2cd

Please sign in to comment.