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

fix: Theming when saving a figure #3

Merged
merged 9 commits into from
Jan 9, 2025
Merged

fix: Theming when saving a figure #3

merged 9 commits into from
Jan 9, 2025

Conversation

kunzaatko
Copy link
Owner

  • docs(themes): improve function documentation and error messages
  • refactor(save-fig)!: improve format handling and theme management
  • test: add unit tests for get_formats function
  • refactor: move LaTeXStrings import to main module and re-export it
  • refactor(savefig)!: improve figure saving workflow and documentation
  • feat(themes): add A4 paper size constants
  • docs(workflows): restructure documentation and add figure export guide

- enhance savefig function documentation with clearer parameter descriptions
- add detailed documentation for screen_parameters and get_interactive_size
- fix typo in ScreenInfo struct (dimesions -> dimensions)
- improve error handling for screen detection
- add cross-references between related functions
- update TODOs with new implementation notes
- Add get_formats function to handle format validation and ordering
- Improve backend_formats function readability
- Replace theme_dict with direct theme generation
- Add better error handling for incompatible formats
- Add comprehensive jldoctest examples

BREAKING CHANGE: Remove theme_dict parameter from savefig function
- Add tests for format validation with CairoMakie
- Add test for automatic SVG format inclusion
- Add test for invalid format combinations
- Move `name` parameter before `width` and `hwratio` for better argument order
- Remove `update` parameter from main function signature
- Add automatic naming for multiple figures with "_i" suffix
- Extract PDF/TeX saving logic into separate `_savepdftex` function
- Add documentation for `ScreenInfo` struct
- Simplify backend-specific save logic
- Remove redundant vector figure handling function
Add A4 paper dimensions as constants (210mm x 297mm) with TODO note for future paper sizes
feat: add comprehensive guide for publication figure exports
- Move workflow content into dedicated subdirectory
- Add detailed examples for figure theming and export sizes
- Include Bessel function visualization examples
- Add SpecialFunctions as documentation dependency
@kunzaatko
Copy link
Owner Author

Fixes #2

@kunzaatko kunzaatko changed the title fix: Theming when saving a figure #2 fix: Theming when saving a figure Jan 9, 2025
@kunzaatko kunzaatko marked this pull request as ready for review January 9, 2025 09:16
@kunzaatko kunzaatko merged commit 9196e6c into trunk Jan 9, 2025
3 checks passed
@kunzaatko kunzaatko deleted the save_theme branch January 9, 2025 09:33
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.

1 participant