#13368: plot(x, xmax=1, xmin=-1) comes up empty
-------------------------------------+-------------------------------------
Reporter: ppurka | Owner: jason, was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-7.3
Component: graphics | Resolution:
Keywords: | Merged in:
Authors: Paul Masson | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/paulmasson/13368 | 0f674f2d7e09d7c564ad093ac310d6749a607119
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by novoselt):
I think you need to adjust logic here:
{{{#!diff
@@ -131,7 +131,7 @@ def setup_for_eval_on_grid(funcs, ranges,
plot_points=None, return_vars=False):
raise ValueError("plot_points must be either an integer or a list
of integers, one for each range")
plot_points = [int(p) if p>=2 else 2 for p in plot_points]
- range_steps = [abs(range[1] - range[0])/(p-1) for range, p in
zip(ranges, plot_points)]
+ range_steps = [(range[1] - range[0])/(p-1) for range, p in
zip(ranges, plot_points)]
if min(range_steps) == float(0):
raise ValueError("plot start point and end point must be
different")
}}}
Since the question is about any of the steps being 0. (Which, ideally,
should not be a problem, but assuming that it is now let's keep the error.
Otherwise, PLEASE, let keywords have the same meaning in all related
functions and let them be handled in the same way!
--
Ticket URL: <https://trac.sagemath.org/ticket/13368#comment:18>
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.