Thank you for addressing this.

On Jan 20, 2010, at 1:00 AM, Jason Grout wrote:

Thomas Scofield wrote:
I am planning to use Sage in a vector calculus course this spring. I have a plot of two simple vector fields which are everywhere orthogonal, and wish to have arrows for one field colored differently than for the other. I cannot, however, find any documentation for a "color switch", neither for the plot_vector_field() command, nor for the show() command. (It does appear that colors are manipulable in the plot_vector_field3d() command.) Is there a way to do this? Thanks.



There is now :). I am posting a patch in the next few minutes to enable colors for vector field plots. Here is an extract from the documentation string:

   Plot two orthogonal vector fields::

       sage: x,y = var('x,y')
sage: a=plot_vector_field((x,y), (x,-3,3), (y,-3,3),color='blue')
       sage: b=plot_vector_field((y,-x),(x,-3,3),(y,-3,3),color='red')
       sage: show(a+b,aspect_ratio=1)

The picture is really pretty :).

The patch is here: http://trac.sagemath.org/sage_trac/ticket/8009

It's waiting for review and should be in the next version of Sage in a few weeks.

Also, I've posted up a number of vector calculus worksheets I started writing last semester here: http://orion.math.iastate.edu/grout/courses/calculus_iii/spring_2010/sage_worksheets

Feel free to use whatever you want from those worksheets, and please let us know of any improvements! I'll be working on these worksheets more as I teach vector calculus this semester.

Thanks,

Jason

--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Thomas L. Scofield
--------------------------------------------------------
Associate Professor
Department of Mathematics and Statistics
Calvin College
--------------------------------------------------------

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to