The custom plot() method is not present in the current version of 
piecewise(). I tried copying it in from piecewise_old.py and rebuilding, 
but it still gets ignored in favor of the standard plot() (hence the 
behavior you describe).

I'm not as enthusiastic as you about the current piecewise(). While 
symbolics are always nice, I think this version is a regression compared to 
the ease of use of the corresponding Piecewise[] in Mathematica. I'd 
certainly like to see improvements to make it more like Mathematica's 
version.

If you'd like to open a ticket to address the missing custom plot, I'd be 
interested in fixing the problem.

On Thursday, September 29, 2016 at 10:34:37 AM UTC-7, kcrisman wrote:
>
> I am so glad that new piecewise is in, so not complaining - but asking as 
> some notes now do not plot properly.  Example:
>
> P = piecewise([((0,2),x),((2,6),2)])
> print P
> plot(P)
>
> http://sagecell.sagemath.org/?q=rewlzb
>
> You can see that it is not only not plotting beyond x=1, it is complaining 
> about negative values.  That says to me that we are now calling the generic 
> plot method, which (when not fed endpoints) by default plots on (x,-1,1).
>
> However, previously plotting piecewise functions by default plotted the 
> entire thing (since they didn't go out to infinity).  I understand the 
> consistency, but also suspect this might have just been overlooked.  Any 
> thoughts?
>
> Thanks!
>  - kcrisman
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to