-
-
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
src/sage/plot/plot.py: random doctest failure #33129
Comments
comment:1
The problem seems to be that the plot routine occasionally decides there is a pole at
If your experience is the same as mine, the graph will include a vertical dashed line from So this doesn't seem to be the same problem as #29954. Instead, it seems we need to make |
comment:2
bump to 9.6 |
comment:3
Replying to @DaveWitteMorris:
I agree. The routine for detecting poles computes the slope between consecutive plot points. In this example, the slope at the discontinuity is just very close to the threshold value, so sometimes a pole is detected there (I am a bit surprised this is not deterministic). A simple attempt would be to increase the threshold a bit. Also, the detection determines the slope only in absolute terms, not relatively – probably it would be good to consider the y-range as well. For example, scaling your example by 10 always replicates the problem:
|
Looks similar to #29954.
Component: doctest framework
Issue created by migration from https://trac.sagemath.org/ticket/33129
The text was updated successfully, but these errors were encountered: