Repository navigation
fix: CannyHistogram.plot shows the figure once, not twice - #278
Merged
Merged
Conversation
CannyHistogram.plot called Histogram.plot, which shows the figure, then added the threshold lines and showed it again. In a notebook that put two live views of one figure in the cell output, and the mouse readout moved in both. It now draws without showing and shows once, after the thresholds are added. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 8 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
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.
CannyHistogram.plotcalledHistogram.plot, which shows the figure, then added the th0 and th1 lines and showed it again. In a notebook that put two live views of one figure in the cell output, and the mouse readout moved in both. The first view also had no threshold lines when it was drawn.It now passes
block=Noneto the baseplot, so that draws without showing, and shows once after the thresholds are added.Tests: the figure is shown once (with and without
ax=), and the th0 and th1 legend entries are present when the figure is shown. The first two fail on the old code. I ran the full suite and mypy, and both are clean.AI-assisted: written with Claude Code.
🤖 Generated with Claude Code