Skip to content

Commit

Permalink
Merged in feature/tweak_pf_histogram (pull request #279)
Browse files Browse the repository at this point in the history
small tweaks to pf histogram

Approved-by: Randy Taylor
  • Loading branch information
jrkerns committed Oct 24, 2023
2 parents 989c7b9 + 73a06f5 commit 404dcc7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pylinac/picketfence.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,12 @@ def plot_histogram(self, bins: int = 10, show: bool = True) -> None:
)
errors = Enumerable(self.mlc_meas).select_many(lambda m: m.error).to_list()
fig, ax = plt.subplots()
ax.axvline(self.tolerance, color="r", linewidth=3)
ax.axvline(-self.tolerance, color="r", linewidth=3)
ax.grid(True)
if self.action_tolerance is not None:
ax.axvline(self.action_tolerance, color="m", linewidth=3)
ax.axvline(-self.action_tolerance, color="m", linewidth=3)
ax.set_title("Leaf error histogram")
ax.set_ylabel("Counts")
ax.set_xlabel("Error (mm)")
Expand Down

0 comments on commit 404dcc7

Please sign in to comment.