Opened 13 years ago

Last modified 7 years ago

#3985 new enhancement

Asymptote plotting

Reported by: kcrisman Owned by: was
Priority: major Milestone: sage-6.4
Component: graphics Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by kcrisman)

Still need improvement on plotting of asymptote of e.g. tan or 1/x, especially when detect_poles != True. Ideally one has an output similar to

sage: plot(tan,-20,20).show(ymin=-5, ymax=5) 

but just straight out of plot.

Change History (9)

comment:1 Changed 12 years ago by mabshoff

Hmm, I am wondering if #3907 fixed this issue?



comment:2 Changed 12 years ago by kcrisman

I doubt it, because e.g. the tangent example above usually won't get 'inf' or '-inf' as something in ydata; it just has weird things happen near asymptotes because of the adaptive plotting, and also will occasionally get random points that are really far from y=0. I'll try it when 3.1.2 comes out, though.

It's actually kind of fun to evaluate the above command again and again, seeing what you get each time... If you try a few times you can get a ydata point that is 10000 or even more, which requires only that plot "guesses" a number within 10-5 of pi/2 for the xdata...

comment:3 Changed 12 years ago by kcrisman

  • Description modified (diff)

Just FYI, #6035 partially resolves this.


sage: plot(tan,-20,20, detect_poles='show')
sage: plot(tan,-20,20, detect_poles=True)

shows that 'show' still keeps the "missing" points (which include not just the asymptote but also the high slopes on either side) and that True doesn't create a uniform height as one might desire in the Description.

Description changed to indicate this successful partial resolution, however!

comment:4 Changed 11 years ago by jason

  • Report Upstream set to N/A
  • Type changed from defect to enhancement

comment:5 Changed 8 years ago by kcrisman

See also #8341.

comment:6 Changed 8 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:7 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:8 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:9 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4
Note: See TracTickets for help on using tickets.