-
Notifications
You must be signed in to change notification settings - Fork 54
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
Fix pl plotting #55
Fix pl plotting #55
Conversation
The previous label keyword had no effect; this fixes that and adds doc string entries for labels.
The tick marks on the y-axis (corresponding to depth of the landscapes) were completely off and mislabeled.
The new 'depth_range' parameter allows the user to specify a range of depths to be plotted. Omitting it plots all depths.
The doc strings were previously in the helper functions, which were not publicly accessible. Move the docstrings into the two main plotting functions and clean up the signatures of the plotting functions.
The previous way of padding the figures changed their values slightly. The 'padding' parameter now adds a slight margin to the plot, especially useful for 2-d 'simple' plots.
`depth_spacing` caused overcrowding issues with labelling. If it needs to be modified, it should be done on a case by case basis by passing an axis.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #55 +/- ##
==========================================
- Coverage 75.84% 74.52% -1.32%
==========================================
Files 20 20
Lines 1453 1480 +27
Branches 315 327 +12
==========================================
+ Hits 1102 1103 +1
- Misses 293 319 +26
Partials 58 58 ☔ View full report in Codecov by Sentry. |
Hi @catanzaromj, these changes look great. Once the tests are passing we can merge. Though it looks like the test failure might be unrelated, you should be able to fix it using Thank you! |
@sauln No problem. Let me know if there's anything else. Thanks! |
@sauln Is there anything else needed? |
The test coverage dropping will be covered in a future PR. |
This PR fixes numerous bugs with plotting persistence landscapes. In particular
depth_range
parameter so a subset of landscape functions can be plotted,padding
previously incorrectly changed landscape function values,A
max_depth
attribute has also been added toPersLandscapeApprox
and the notebooks were updated.Please pass along any comments you have. Thanks.