Adjust recalculated figure size based on ratio instead of difference #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This solves issues with pgfplots' groupplot environments that lead to negative widths/heights while iteratively searching for the correct scaling factor.
Issues this should solve:
#5
https://tex.stackexchange.com/questions/174013/scaling-multi-column-groupplot-while-maintaining-font-size-and-node-placement
https://tex.stackexchange.com/questions/605840/tikzscale-fails-for-group-plot-with-three-elements-but-works-for-two-elements
https://tex.stackexchange.com/questions/651294/tikzscale-package-not-working-with-group-plots
https://tex.stackexchange.com/questions/230974/conflict-tikzscale-and-matrix-group-plot
https://tex.stackexchange.com/questions/594924/properly-adjust-pgfplot-group-plot-to-textwidth/595722#595722
https://tex.stackexchange.com/questions/524210/create-a-groupplot-with-specific-total-width-font-family-and-font-size
I had the same issues whenever trying to scale a groupplot and now finally got around to do something about it,