Skip to content

plot in piecewise regression #21618

@kcrisman

Description

@kcrisman
P = piecewise([((0,2),x),((2,6),2)])
print P
plot(P)

Before this would have plotted the whole thing, now it defaults to the usual plotting only from -1 to 1 (which of course gives an error).

Moreover pieces are joined and detect_poles=True option skips the origin for no good reason:

P = piecewise([((-1,2),x),((2,5),1)])
print P
plot(P, -1, 5, detect_poles=True)

CC: @paulmasson

Component: symbolics

Branch/Commit: u/rws/21618-1 @ c008c29

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions