Let box-and-whisker symbols take separate width and cap#7072
Merged
PaulWessel merged 1 commit intomasterfrom Nov 3, 2022
Merged
Let box-and-whisker symbols take separate width and cap#7072PaulWessel merged 1 commit intomasterfrom
PaulWessel merged 1 commit intomasterfrom
Conversation
By default, the body of the box-and-whisker symbol inherited its size from the error cap width. This meant it was not possible to set the cap width to zero (i.e., no cap) without loosing the symbol entirely. This PR allows users to set separate dimensions via +wwidth[/cap]. Tested and seems OK, and documentation has been updated to reflect the change.
joa-quim
approved these changes
Nov 3, 2022
6 tasks
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.
By default, the body of the box-and-whisker symbol inherited its size from the error cap width (see #7071 for background). This meant it was not possible to set the cap width to zero (i.e., no cap) without loosing the symbol entirely. This PR allows users to set separate dimensions via +wwidth[/cap] and updates the documentation. Tested and seems OK, and documentation has been updated to reflect the change.
As an example of box-and-whisker with no cross-cap, try (change X to Y for vertical):
echo 5 5 2 3 6 9 | gmt plot -R0/10/0/10 -JX4i -EX+p1p+w10p/0 -Sp -Glightblue -W0.5p -Baf -png t