1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
|
\input texinfo
@c makeinfo drawutils.texi to make .info
@c texi2html drawutils.texi to make .html
@c texi2pdf drawutils.texi to make .pdf
@setfilename drawutils.info
@settitle drawutils
@ifinfo
@macro var {expr}
<\expr\>
@end macro
@end ifinfo
@dircategory Mathematics/Maxima
@direntry
* drawutils: (maxima/drawutils). Maxima share package drawutils: additional drawing functions for package draw.
@end direntry
@node Top, Introduction to drawutils, (dir), (dir)
@top
@menu
* Introduction to drawutils::
* Vector fields::
* Venn diagrams::
* Function and variable index::
@end menu
@node Introduction to drawutils, Vector fields, Top, Top
@chapter Introduction to drawutils
Package @code{drawutils} contains user contributed code based on the @code{draw} package.
@node Vector fields, Venn diagrams, Introduction to drawutils, Top
@chapter Vector fields
By Donald J. Bindner (2010)
Functions for plotting vector fields in 2D and 3D.
@deffn {Function} plot_vector_field (@var{F}, @var{X}, @var{Y}, ... )
Draws a 2D vector field.
Arguments:
@itemize @bullet
@item
@var{F}: a vector containing field components.
@item
@var{X}: name and bounds of first coordinate.
@item
@var{Y}: name and bounds of second coordinate.
@end itemize
Optional parameters:
@itemize @bullet
@item
Those defined in the @code{draw} package.
@item
@var{scale=1}: auto-scaling of arrows (default).
@item
@var{scale=0}: no auto-scaling.
@item
@var{scale=*}: adjust arrows shorter -- numbers between 0 and 1 or longer -- numbers greater than 1.
@end itemize
Examples:
@example
(%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)$
@end example
@end deffn
@deffn {Function} plot_vector_field3d (@var{F}, @var{X}, @var{Y}, @var{Z}, ... )
Draws a 3D vector field.
Arguments:
@itemize @bullet
@item
@var{F}: a vector containing field components.
@item
@var{X}: name and bounds of first coordinate.
@item
@var{Y}: name and bounds of second coordinate.
@item
@var{Z}: name and bounds of third coordinate.
@end itemize
Optional parameters:
@itemize @bullet
@item
Those defined in the @code{draw} package.
@item
@var{scale=1}: auto-scaling of arrows (default).
@item
@var{scale=0}: no auto-scaling.
@item
@var{scale=*}: adjust arrows shorter -- numbers between 0 and 1 or longer -- numbers greater than 1.
@end itemize
Examples:
@example
(%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)$
@end example
@end deffn
@node Venn diagrams, Function and variable index, Vector fields, Top
@chapter Venn diagrams
By Pankaj Sejwal (2015)
The @emph{vennplot} package enables the user to plot Venn diagram for any logical
relation. Logical atoms are represented as equally distanced circles of different
random colours which help in distinguishing different circles.
No known bug, but in case some issue needs to be addressed, please share it on
Maxima mailing list.
@deffn {Function} vennplot (@var{logical_expression})
Draws a basicVenn diagram.
Examples:
@example
(%i1) load(drawutils)$
(%i2) vennplot(a and b and not(c) and d)$
(%i3) vennplot(a and b and c and d)$
(%i4) vennplot(not(d))$
@end example
TODO : Filling circles with different colors
@end deffn
@node Function and variable index, , Venn diagrams, Top
@appendix Function and variable index
@printindex fn
@c @printindex vr
@bye
|