Add optional fraction for terminal shrinking value#6115
Merged
PaulWessel merged 4 commits intomasterfrom Dec 13, 2021
Merged
Conversation
The +nnorm modifier that shrinks down veector attributes for shorter vectors would shrink to 0 by default. This PR adds an optional terminal shrink value [0] that can be set by appending /frac.
Member
|
I agree that the current behavior could be considered a bug; 0.25 minimum produces a more reasonable plot. |
Member
|
Yes, 0.25 seems a good dfalt. |
Member
Author
|
OK, I will update the docs that way. I think I will fix any tests that use **+**n to have an explicit /0 so that we don't get useless failures. Might as well since this example will exercise the new defaults, and I am working on a wind-vector plot based on #6108 that will do a good job but requires review of #6113. |
Member
Author
|
OK, this PR has been updated, scripts revised to avoid new PS originals, plus the new test case. Ready for a review. |
maxrjones
approved these changes
Dec 13, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The +nnorm modifier that shrinks down vector attributes for shorter vectors would shrink to 0 by default. This PR adds an optional terminal shrink value [0] that can be set by appending /frac. The shrink_lim.sh test explores how this works. The +n is used to shrink attributes when the vector length is less than 1 inch (-R values are in inches and the gridlines indicates the cutoff):
Comments:
Thoughts?