-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
Remove numpy warnings in slope field #11208
Comments
Upstream: Not yet reported upstream; Will do shortly. |
comment:1
This should be reported upstream, right? |
comment:2
Probably, and I say so on sage-support, but I don't know how to make this pure matplotlib, and maybe they would say it's user error? But you are almost certainly right. |
comment:3
I don't think this was ever reported upstream. And now it's going to cause a problem for our PREP calculus tutorial... grumble, grumble. |
comment:4
For the moment it seems OK to use Doug McNeil's hack of setting: headlength=1e-8 |
comment:6
Patch attached. Wasn't sure of the idiom for doctesting the warnings; went with what I would have done in a non-Sage project. |
headlength = epsilon hack |
Dependencies: #10489 |
Reviewer: PatchBot |
comment:7
Attachment: trac_11208_avoid_headless_quiver_warning.patch.gz This doesn't apply to the current Sage dev version -- it seems to conflict with #10489. Can you rebase it? |
Changed upstream from Not yet reported upstream; Will do shortly. to Reported upstream. Little or no feedback. |
Changed reviewer from PatchBot to David Loeffler, Karl-Dieter Crisman |
comment:9
On the plus side, it works! DSM, just be sure to not replace the previous patch so that we can compare the two, but the rebase should be nearly trivial (I almost did it just now, but decided you were probably in the midst). The only thing I could possibly say is that I would put the "(trac #11208)::" on the next line, but it's not really that important. So positive review, modulo rebase. |
Author: Douglas McNeil |
headlength = epsilon hack, rebased to 5.0.beta7 |
comment:10
Attachment: trac_11208_avoid_headless_quiver_warning_v2.patch.gz Dropped a message on matplotlib-devel; at least one dev thought special-casing zero was a good idea, so I'll work up a matplotlib patch if I get some time. Not much pressure to do it on our end now, though. [PS @kcrisman -- not only was I in the midst, I was typing things like 'hg export tip' as you were writing that..] |
comment:11
Great, make sure to post a link to the discussion on matplotlib-devel. This applies to beta7 and fixes something we REALLY should have fixed a long time ago. By the way, it turns out we now have this nice |
comment:12
Apply trac_11208_avoid_headless_quiver_warning_v2.patch (for patchbot) |
Merged: sage-5.0.beta9 |
comment:14
Upstream report is here. |
Having no arrows in an arrow plot (i.e., vector field that is a slope field) now causes warnings from matplotlib.
DSM has a diagnosis at this sage-support thread
So maybe this should be reported upstream? See also #2922, which is also about the mpl quivers.
Depends on #10489
Upstream: Reported upstream. Little or no feedback.
CC: @jasongrout @novoselt
Component: graphics
Author: Douglas McNeil
Reviewer: David Loeffler, Karl-Dieter Crisman
Merged: sage-5.0.beta9
Issue created by migration from https://trac.sagemath.org/ticket/11208
The text was updated successfully, but these errors were encountered: