Hello,

On Tue, Aug 26, 2008 at 8:47 PM, kcrisman <[EMAIL PROTECTED]> wrote:
>
> There have been tons of great improvements to the plotting making
> their way through trac lately.  Do any of those changes for ranges
> etc. deal with the very weird output one gets for e.g.
>
> sage: plot((x-1)/(x+2),-4,4)
>
> or, worse,
>
> sage: plot(tan,-20,20)
>
> In both cases, Sage isn't "recognizing" the asymptotes, and then the
> scale gets thrown off, not to mention the non-existent-but-plotted
> connections across discontinuities.

Nope, none of these are fixed by the new changes.  I tried Maple and
it did the same thing -- I don't know what Mathematica does.  You can
do these as a workaround:

sage: plot(tan,-20,20).show(ymin=-5, ymax=5)
sage: plot((x-1)/(x+2),-4,4).show(ymin=-10, ymax=10)

I don't know the best way to be "smart" about fixing this such as how
much of the asymptote to include, etc.

> PS - related to this are two points which don't seem to fit elsewhere
> but about which I am curious:
> 1) It would be useful for those involved to put a summary of the
> plotting improvements/changes in internals on a wiki page, once the
> whole overhaul is complete.

I'll do this in the next day or two.

> 2) Specifically, will the old syntax plot(sin,-5,5) continue to be
> valid under the new plot(sin,(-5,5)) syntax, or will it be completely
> deprecated?  Despite the logic of the new syntax, the old one is
> REALLY convenient and intuitive, and it would be a shame to have to
> change all those old worksheets...

plot(sin, -5, 5) still works.

--Mike

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to