Fix swapped axes in linear model coefficient plots (Issue #32706) #32709
+2
−2
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.
Corrected two instances where AGE and EXPERIENCE coefficients were plotted in the wrong order.
This aligns the scatter plots with the axis labels and fixes the inconsistency raised in Issue #32706.
Reference Issues/PRs
Fixes #32706
What does this implement/fix? Explain your changes.
This PR updates two
plt.scatter()calls in the linear model coefficient interpretation example whereAGEandEXPERIENCEwere plotted in the wrong order.According to the axis labeling (Experience on the x-axis and Age on the y-axis), the arguments to
plt.scatter()needed to be swapped. Both plots have now been corrected for consistency.Any other comments?
The modification affects only example documentation code and does not change any library behavior.