#5259: invalid array elements sent to matplotlib quiver, causing blank plot
----------------------+-----------------------------------------------------
Reporter: jason | Owner: was
Type: defect | Status: new
Priority: major | Milestone: sage-3.3
Component: graphics | Keywords:
----------------------+-----------------------------------------------------
A student noticed that sometimes, when a function evaluation gave Inf or
NaN, the vector field plot was blank. Discussing this on the matplotlib-
users list revealed that we ought to mask our arrays before sending them
to the matplotlib quiver function. This patch corrects this, so that the
plot:
{{{
plot_vector_field( (-x/sqrt(x^2+y^2), -y/sqrt(x^2+y^2)), (x, -10, 10), (y,
-10, 10))
}}}
now plots (before it was a blank plot, now it just skips the problematic
vectors).
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5259>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---