-
Notifications
You must be signed in to change notification settings - Fork 92
📝 Add utils.visualization
Examples
#943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #943 +/- ##
========================================
Coverage 99.70% 99.70%
========================================
Files 71 71
Lines 9133 9133
Branches 1188 1188
========================================
Hits 9106 9106
Misses 23 23
Partials 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request adds usage examples to several visualization utilities in tiatoolbox/utils/visualization.py
.
- Adds
Examples
sections to the docstrings of:random_colors
colourise_image
overlay_prediction_mask
overlay_probability_map
overlay_prediction_contours
plot_graph
Comments suppressed due to low confidence (2)
tiatoolbox/utils/visualization.py:355
- The example assigns to
ax
butreturn_ax=False
returns the overlay array, not an axis. Rename the variable (e.g.,overlay = overlay_probability_map(...)
) or setreturn_ax=True
to match the example.
>>> ax = overlay_probability_map(
tiatoolbox/utils/visualization.py:628
- This comment references
overlay_prediction_contours
but should sayplot_graph
to match the function being demonstrated.
>>> # Example usage of overlay_prediction_contours
Add examples for utils.visualization.