#14599: Allow custom fill endpoints in a filled plot
-------------------------------------+-------------------------------------
Reporter: kcrisman | Owner: jason, was
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: graphics | Resolution:
Keywords: beginner | Merged in:
Authors: Sergey Bykov | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/captaintrunky/allow_custom_fill_endpoints_in_a_filled_plot|
2f0fdcbbf72151007f9cd149fa4b12fdfcb8b141
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by kcrisman):
* status: needs_review => needs_work
* cc: vbraun (added)
Comment:
Look at the following interesting behavior.
{{{
sage: plot([x^3,x^2,x], xmin=0, xmax=4, fill={0:[1], 1:1, 2:1-x},
fillxmin=1, fillxmax=2)
}}}
It's definitely obeying the `fillxmax` but not in the way one might
expect.
Similarly, I'm not sure that
{{{
sage: plot((cos(x),sin(x)), xmin=0, xmax=2*pi, parametric=True, fill=True,
fillxmin=0.5)
}}}
is behaving as expected.
And I'm completely flummoxed as to why
{{{
sage: plot((cos(x),sin(x)), xmin=0, xmax=2*pi, parametric=True, fill=True,
fillxmin=1)
<boom>
KeyError: 'text/plain'
}}}
due to the new display hook stuff!
One possible workaround would be to disallow the custom fill (for now) in
parametric plots (i.e. raise an error) and make that a new ticket. I do
think that the first 'bad' example should be dealt with, though.
--
Ticket URL: <http://trac.sagemath.org/ticket/14599#comment:12>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.