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

Landscape orientation for figures #232

Open
NinetLab-Redux opened this issue Apr 30, 2023 · 4 comments
Open

Landscape orientation for figures #232

NinetLab-Redux opened this issue Apr 30, 2023 · 4 comments
Assignees
Labels
physio Issues related to PhysIO Toolbox
Projects

Comments

@NinetLab-Redux
Copy link

Hi Lars,
The figures are saved in portrait and some looked squished a bit to use in presentations.
I tried to tinker with the "tapas_physio_print_figs_to_file.m" and tried this on lines 70-72

for k=1:length(verbose.fig_handles)
set(verbose.fig_handles(k), 'PaperOrientation', 'landscape');
print(verbose.fig_handles(k), printFormat,'-landscape', fullfile(pfx,[fn sprintf('_%02d', k) sfx]));

but it seems -landscape is an illegal option in Matlab 2020a.
I tried getting advice from the "Oracle" and suggested I use "print(verbose.fig_handles(k), printFormat, '-fillpage', fullfile(pfx,[fn sprintf('_%02d', k) sfx]));"
but I get
"Error using validate (line 135)
The 'fillpage' option is only valid for page formats and printers."
Any suggestions? I'm trying to create a flow with the images for Quality Assurance purposes
thanks and best regards

@mrikasper
Copy link
Member

Dear Fidel,

I believe the best way to go about this, is to change the Position of the figure, e.g., set(verbose.fig_handles(k),'Position', [10 10 widthInPixel HeightInPixel]. You might also adjust it's WindowStyle to 'default'.

I hope that helps - let me know how your QA flow is going. There should also be an update this month to PhysIO with a much more versatile version of tapas_physio_review by @likeajumprope that should allow you to interactively recreate most of the figures from the physio.mat saved during processing.

All the best,
Lars

@mrikasper mrikasper self-assigned this May 1, 2023
@mrikasper mrikasper added the physio Issues related to PhysIO Toolbox label May 1, 2023
@mrikasper mrikasper added this to To do in PhysIO via automation May 1, 2023
@NinetLab-Redux
Copy link
Author

NinetLab-Redux commented May 2, 2023 via email

@mrikasper
Copy link
Member

Dear Fidel,

This was just a placeholder, you have to define values for these variables before, e.g., widthInPixel = 1400; heightInPixel = 875;.

All the best,
Lars

@NinetLab-Redux
Copy link
Author

NinetLab-Redux commented May 2, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physio Issues related to PhysIO Toolbox
Projects
PhysIO
  
To do
Development

No branches or pull requests

2 participants