Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PicketFence: Text superposition in publish_pdf #453

Closed
LuisOlivaresJ opened this issue May 30, 2023 · 0 comments
Closed

PicketFence: Text superposition in publish_pdf #453

LuisOlivaresJ opened this issue May 30, 2023 · 0 comments

Comments

@LuisOlivaresJ
Copy link
Contributor

I am using pylinac 3.11.0

Describe the bug

"Metadata" and "results" texts superposition in PicketFence.publish_pdf report. This bug has been previously described by Chase Mallory

To Reproduce

    from pylinac import PicketFence
    
    pf_img = 'RI.dcm'
    pf = PicketFence(pf_img)
    pf.analyze(tolerance = 0.4, action_tolerance = 0.2)
    
    pf.publish_pdf('PF_Stat_0_test.pdf', metadata = {'Author': 'Luis', 'unit': 'Clinac-iX'})

Screenshots
Captura

Proposed solution
From

canvas.add_text(
text=self.results(as_list=True), location=(1.5, 25), font_size=14

Change results location, it could be:

location = (1.5, 22)

I'll try to make a pull request for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants