Changes between Version 1 and Version 2 of Ticket #11225


Ignore:
Timestamp:
06/03/11 13:22:37 (10 years ago)
Author:
kcrisman
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11225 – Description

    v1 v2  
    1010}}}
    1111 * Maybe unify with `plot_step_function`, which currently is sort of its own thing?
     12 * In this example:
     13{{{
     14sage: zero_func(x)=0
     15sage: g = Piecewise([[(-1000,1),zero_func],[(1,1000),(x-1)^3]],x)
     16sage: G = g.plot()
     17sage: G.show(xmin=-5,xmax=5,ymax=100)
     18sage: g(1)
     190
     20}}}
     21   * You can use oo (infinity) for endpoints, but then the plot code for Piecewise gets screwed up.
     22   * You can try putting in zero instead of defining this new zero function, but then g(1) and g(-1) etc. won't work.
     23   * You can try using extend_by_zero to make the zero part, but it gives the same problem.
     24   * You can plot without xmin and xmax, but that gives the whole function.
     25   * You can plot without ymax, but that gives the range further out than you want.
     26   * You can try plot(g), but that turns out to uncover a very strange error that may or may not be a bug.