#13368: plot(x, xmax=1, xmin=-1) comes up empty
----------------------------+--------------------------
Reporter: ppurka | Owner: jason, was
Type: defect | Status: needs_info
Priority: major | Milestone: sage-6.4
Component: graphics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------+--------------------------
Comment (by ppurka):
Replying to [comment:12 paulmasson]:
> Evaluating `plot(x, xmin=1, xmax=-1)` with a reversed domain does not
produce a plot. Evaluating`plot(1/x,xmin=-5,xmax=5,ymin=5,ymax=-5)` with
an inverted range flips the plot upside down.
Second command should be the desired output.
> Shouldn't this ticket be first about a sanity check on domain and range?
Is there a good reason to allow reversal and inversion?
A good reason to allow flipped axis is to have axes that are decreasing
instead of increasing. It is already possible by using
`plot(...).show(xmax=-1,xmin=1)`. This ticket was about making the
behavior of plot ''consistent'' with what `plot(...).show()` does.
--
Ticket URL: <https://trac.sagemath.org/ticket/13368#comment:13>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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-trac.
For more options, visit https://groups.google.com/d/optout.