-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
Since the project assumes python >=3.8, and 3.8 is also the lowest supported version now that 3.12 is out, this class shouldn't use python >=3.11 features. https://devguide.python.org/versions/
Not yet sure how ImageMagick should be installed on Windows.
The tempfile module already create temporary directories that are unique.
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? |
Yes I agree thats an issue. I think the last commit fixes it. |
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. |
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.