Skip to content
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

Line interrupted in plot #25027

Closed
matswb mannequin opened this issue Mar 23, 2018 · 5 comments
Closed

Line interrupted in plot #25027

matswb mannequin opened this issue Mar 23, 2018 · 5 comments

Comments

@matswb
Copy link
Mannequin

matswb mannequin commented Mar 23, 2018

In the following plot

plot([(x+2)*e^(1/x), x+3], (x, -5, 15), ymax=10, detect_poles='show')

the x+3 line is interrupted. I think detect_poles causes this. My current work-around is to use plot_points=1000.

Component: graphics

Keywords: plot line interrupted

Reviewer: Dave Morris

Issue created by migration from https://trac.sagemath.org/ticket/25027

@matswb matswb mannequin added this to the sage-8.2 milestone Mar 23, 2018
@matswb matswb mannequin added c: graphics labels Mar 23, 2018
@kcrisman
Copy link
Member

comment:1

Your issue, I think, is caused by plotting both functions together; apparently it's detecting the other one's pole, which is strange.

The underlying thing is weirder, actually; see this example.

plot((x+1)*e^(1/(x-1)), (x, -5, 15), ymax=10, detect_poles=True)+plot(x+2, (x, -5, 15), ymax=10)

This allows one to see it slightly better, since it isn't on the y-axis. Unless this is a separate issue.

This is weird, because I don't see an obvious place in the code where it should do this if the slopes aren't within epsilon of infinity, so to speak, and definitely not in these cases. Sorry I can't help right away with an obvious fix, because the code was reasonable when put in and I don't recall this particular thing coming up.

@DaveWitteMorris
Copy link
Member

Reviewer: Dave Morris

@DaveWitteMorris
Copy link
Member

comment:2

This should be closed as a duplicate of #31089.

@DaveWitteMorris DaveWitteMorris removed this from the sage-8.2 milestone Mar 12, 2021
@kwankyu
Copy link
Collaborator

kwankyu commented Mar 12, 2021

comment:3

Right.

@DaveWitteMorris
Copy link
Member

comment:4

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants