-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Use matplotlib's infinite axline to demonstrate hough transform #4877
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
Conversation
Hello @stefanv! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-02-12 22:13:43 UTC |
I think this actually needs Matplotib >= 3.3!. When I tried with 3.1.1 I got There are |
Matplotlib 3.0 is nearly two years old, so that seems reasonable to require. Matplotlib 3.3, though, was just released 15 days ago! Do you think it is worth having two code paths in the example until we make 3.3 a requirement or should we hold off on this change for now? |
Yeah, this is a 3.3 feature. |
1fc7a75
to
447ddc4
Compare
Woops, meant to write 3.3 ;) |
I think using Arch linux has messed with me. What?! Not running latest? Get at it! |
Can we change the dependency for the docs instead? We already require a newer version of matplotlib for docs than for the build. |
I agree with Mark here: if we bump a dependency for a version which is only 2 weeks old, it should be the docs dependencies, not the package ones. |
Sure, that's fine. But I may hold off until 3.3 is widely available to users, otherwise this won't run for most readers. |
FWIW, I'm all for this change. |
I'm happy to merge ASAP if we change this to happen with the docs requirement rather than the default ones. |
4c9b02f
to
a997e18
Compare
OK, should be good to go. |
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.
I just wonder if you meant matplotlib version decrease, otherwise I am 👍 for the introduced changes. Thank you @stefanv
requirements/default.txt
Outdated
@@ -1,6 +1,6 @@ | |||
numpy>=1.16.5 | |||
scipy>=1.2.3 | |||
matplotlib>=3.0.3 | |||
matplotlib>=3.0.1 |
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.
Is this change intentional?
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.
Woops, no, thanks for catching that; fixed.
3e40419
to
ea2d558
Compare
This requires matplotlib 3.3.
It does prevent problems when
np.sin(angle)
is zero.