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

Text results position changed in PicketFence.publish_pdf #454

Merged
merged 1 commit into from
May 30, 2023

Conversation

LuisOlivaresJ
Copy link
Contributor

@LuisOlivaresJ LuisOlivaresJ commented May 30, 2023

Regarding issue #453

As can be see in line 40 from PylinacCanvas class

metadata_location: tuple = (2, 25.5),

by default, metadata location is (2, 25.5). That is why the superposition when we call canvas.add_text(..., location = (1.5, 25), ...) in line 982 from picketfence.py

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

The new location to (1.5, 22) gives the posibility to show up to 7 metadata rows

Captura

As can be see in PylinacCanvas class

https://github.com/jrkerns/pylinac/blob/5894520e90d45d74a1a1d184eeed0121a2238afd/pylinac/core/pdf.py#L40

by default, metadata location is (2, 25.5). That is why the superposition when we call canvas.add_text(..., location = (1.5, 25), ...) in line 982 from picketfence.py

https://github.com/jrkerns/pylinac/blob/5894520e90d45d74a1a1d184eeed0121a2238afd/pylinac/picketfence.py#L981-L983

The new location to (1.5, 22) gives the posibility to show up to 7 rows
@LuisOlivaresJ LuisOlivaresJ changed the title Text results position changed in PicketFace.publish_pdf Text results position changed in PicketFence.publish_pdf May 30, 2023
@jrkerns
Copy link
Owner

jrkerns commented May 30, 2023

Looks good. thanks

@jrkerns jrkerns merged commit 7e2d9cb into jrkerns:master May 30, 2023
jrkerns added a commit that referenced this pull request Oct 7, 2024
RAM-4056 fix more direct density scans for the catphan 600

Approved-by: Randy Taylor
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

Successfully merging this pull request may close these issues.

2 participants