-
Notifications
You must be signed in to change notification settings - Fork 31
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
Right vertical #519
Right vertical #519
Conversation
This looks like it's working well in the web app. |
Actually, I didn't know that Figure_to_pdf also need to be modified... I try to add the right vertical position but it seems to not work properly. Right vertical labels are not displayed. |
@Rdornier After spending a while to remember how labels are laid out in reportlab, I finally found that this is what you need:
|
Thanks @will-moore ; However, the labels are still not displayed yet |
Are you sure you've got the changes applied (and updated the script on the server)? PDF on the right: However, I just tried TIFF export and got an error, so I can't test that just now... |
Ok, happy to see that it works well on your side ! |
Yes, the script will need to be uploaded to the server. |
Ok, now it works correctly ! |
temp_label = temp_label.rotate(90, expand=True) | ||
y = y - (temp_label.size[1]/2) | ||
elif align == "right-vertical": | ||
temp_label = temp_label.rotate(-90, expand=True) | ||
y = y - (temp_label.size[1]/2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you also need x = x - temp_label.size[0]
here to shift the labels a bit to the left:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK !
Having got my TIFF export working (see #523), I found that I needed to shift them left a bit (see comment above) to get the TIFF to match the app: ![]() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Add the option to put labels to the right-vertical of the image