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

feat(plotting): concatenate plots in a subfigure layout #21

Merged
merged 21 commits into from
Apr 29, 2024
Merged

Conversation

engeir
Copy link
Member

@engeir engeir commented Nov 27, 2023

A small class that calls imagemagick and creates a figure with subfigures. Useful for standardizing figure layouts as a replacement for the latex subfigure environment.

The font type, font size, color, position and text of the labels can be changed from the default.

It should be able to provide the amount of flexibility typically needed, but also extending the class should hopefully be straight forward. A help method is available which prints the imagemagick commands that are used under the hood.

This PR also adds some tests for this class only, run against ubuntu-latest.

@engeir engeir added the enhancement New feature or request label Nov 27, 2023
@engeir engeir requested a review from sajidah-ahmed December 12, 2023 08:30
@audunth
Copy link
Contributor

audunth commented Apr 29, 2024

The output seems to be a .png no matter what the input is (replacing all .png in the readme with .jpg or .eps still produces a .png output). Is convert able to keep .eps - vector formats?

@engeir
Copy link
Member Author

engeir commented Apr 29, 2024

Yes I agree thats an issue. I think the last commit fixes it.

@audunth
Copy link
Contributor

audunth commented Apr 29, 2024

I don't think convert preserves the vector format of .eps - it just turns the original .eps into an image and then converts the result to .eps. This is not something we can fix here.

@engeir engeir merged commit 3c02c3b into main Apr 29, 2024
10 checks passed
@engeir engeir deleted the image-concat branch April 29, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants