Bugfix #482 support any variation of 1, true in show_legend settings… #487
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.
… (in the YAML config file)
Pull Request Testing
Describe testing already performed for these changes:
generated line plots using the following YAML config file and sample data:
modified the show_legend setting to:
and verified the generated plots have the legend label
- values other than 1, '1', true (any case combination):
- false
- False
- 0
and verified the generated plots do NOT have the legend labels displayed, as requested.
on 'seneca':
METcalcpy (develop) and METplotpy (feature_482_legend_labels) are located at:
/d1/projects/PR_METplotpy_482
run in bash shell
activate this conda environment:
/d1/personal/mwin/miniconda3/envs/mp_analysis_env
Test using the debug.yaml and debug.data file located in the /d1/projects/PR_METplotpy_482/METplotpy/metplotpy/plots/line directory
- **modify the following setting ** to verify that the legend labels show or are hidden, based on setting 'True' (any variation of capitalization/lower case), 1, '1' to show and anything else.
!!! line 171 !!!
Generate the plot by running:
A plot named plot_legends.png will be generated:
SHOW LEGEND TURNED OFF:
SHOW LEGEND TURNED ON:
Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [NA]
Do these changes include sufficient testing updates? [NA]
Will this PR result in changes to the test suite? [No]
If yes, describe the new output and/or changes to the existing output:
Do these changes introduce new SonarQube findings? [No]
If yes, please describe: possible QualityGate findings since this code may be considered "new"
Please complete this pull request review by before Beta2 release.
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s) and Development issue
Select: Milestone as the version that will include these changes
Select: Coordinated METplus-X.Y Support project for bugfix releases or METplotpy-X.Y.Z Development project for official releases