(drawutils.info)Vector fields


Next: Venn diagrams Prev: Introduction to drawutils Up: Top
Enter node , (file) or (file)node

2 Vector fields
***************

By Donald J. Bindner (2010)

   Functions for plotting vector fields in 2D and 3D.

 -- Function: plot_vector_field (<F>, <X>, <Y>, ... )
     Draws a 2D vector field.

     Arguments:

        * <F>: a vector containing field components.

        * <X>: name and bounds of first coordinate.

        * <Y>: name and bounds of second coordinate.

     Optional parameters:

        * Those defined in the 'draw' package.
        * <scale=1>: auto-scaling of arrows (default).

        * <scale=0>: no auto-scaling.

        * <scale=*>: adjust arrows shorter - numbers between 0 and 1 or
          longer - numbers greater than 1.

     Examples:

          (%i1) load(drawutils)$
          (%i2) plot_vector_field([-y,x], [x,-1,1], [y,-1,1])$
          (%i3) plot_vector_field([-y,x], [x,-1,1], [y,-1,1],
                                  scale=0)$

 -- Function: plot_vector_field3d (<F>, <X>, <Y>, <Z>, ... )
     Draws a 3D vector field.

     Arguments:

        * <F>: a vector containing field components.

        * <X>: name and bounds of first coordinate.

        * <Y>: name and bounds of second coordinate.

        * <Z>: name and bounds of third coordinate.

     Optional parameters:

        * Those defined in the 'draw' package.
        * <scale=1>: auto-scaling of arrows (default).

        * <scale=0>: no auto-scaling.

        * <scale=*>: adjust arrows shorter - numbers between 0 and 1 or
          longer - numbers greater than 1.

     Examples:

          (%i1) load(drawutils)$
          (%i2) plot_vector_field3d([-y,x,z], [x,-1,1], [y,-1,1], [z,-1,1])$
          (%i3) plot_vector_field3d([-y,x,z], [x,-1,1], [y,-1,1], [z,-1,1],
                                    scale=0)$


automatically generated by info2www version 1.2.2.9