Maxima – 264 – draw – 11

sl107

Continuo da qui, copio dal Reference Manual, PDF scaricabile da qui, sono a p.813.

gnuplot_file_name
Default value: “maxout_xxx.gnuplot” with “xxx” being a number that is unique to
each concurrently-running maxima process.

This is the name of the file with the necessary commands to be processed by Gnuplot. Since this is a global graphics option, its position in the scene description does not
matter. It can be also used as an argument of function draw.

(%i1) draw2d(
        file_name = "my_file",
        gnuplot_file_name = "my_commands_for_gnuplot",
        data_file_name = "my_data_for_gnuplot",
        terminal = png,
        explicit(x^2, x, -1, 1)) $

my_file

See also data_file_name.

grid
Default value: false.

If grid is not false, a grid will be drawn on the xy plane. If grid is assigned true, one grid line per tick of each axis is drawn. If grid is assigned a list nx, ny with [nx,ny] > [0,0] instead nx lines per tick of the x axis and ny lines per tick of the y axis are drawn.

Since this is a global graphics option, its position in the scene description does not
matter.

(%i2) draw2d(grid = true,
        explicit(exp(u), u, -2, 2))$

264-1

(%i3) draw2d(grid = [2, 2],
        explicit(sin(x), x, 0, 2*%pi))$

264-2

head_angle
Default value: 45.

head_angle indicates the angle, in degrees, between the arrow heads and the segment. This option is relevant only for vector objects.

(%i4) draw2d(xrange = [0, 10],
        yrange = [0, 9],
        head_length = 0.7,
        head_angle = 10,
        vector([1, 1], 0, 6]),
        head_angle = 20,
        vector([2, 1], [0, 6]),
        head_angle = 30,
        vector([3, 1], [0, 6]),
        head_angle = 40,
        vector([4, 1], [0, 6]),
        head_angle = 60,
        vector([5, 1], [0, 6]),
        head_angle = 90,
        vector([6, 1], [0, 6]),
        head_angle = 120,
        vector([7, 1], [0, 6]),
        head_angle = 160,
        vector([8, 1], [0, 6]),
        head_angle = 180,
        vector([9, 1], [0, 6]) )$

264-3

See also head_both, head_length, and head_type.

head_both
Default value: false.

If head_both is true, vectors are plotted with two arrow heads. If false, only one arrow is plotted. This option is relevant only for vector objects.

(%i5) draw2d(xrange = [0, 8],
        yrange = [0, 8],
        head_length = 0.7,
        vector([1, 1], [6, 0]),
        head_both = true,
        vector([1, 7], [6, 0]) )$

264-4

See also head_length, head_angle, and head_type.

head_length
Default value: 2.

head_length indicates, in x-axis units, the length of arrow heads. This option is relevant only for vector objects.

(%i6) draw2d(xrange = [0, 12],
        yrange = [0, 8],
        vector([0, 1], [5, 5]),
        head_length = 1,
        vector([2, 1], [5, 5]),
        head_length = 0.5,
        vector([4, 1], [5, 5]),
        head_length = 0.25,
        vector([6, 1], [5, 5]))$

264-5

See also head_both, head_angle, and head_type.

head_type
Default value: filled.

head_type is used to specify how arrow heads are plotted. Possible values are: filled (closed and filled arrow heads), empty (closed but not filled arrow heads), and nofilled (open arrow heads). This option is relevant only for vector objects.

(%i7) draw2d(xrange = [0, 12],
        yrange = [0, 10],
        head_length = 1,
        vector([0, 1], [5, 5]), /* default type */
        head_type = 'empty,
        vector([3, 1], [5, 5]),
        head_type = 'nofilled,
        vector([6, 1], [5, 5]))$

264-6

See also head_both, head_angle, and head_length.

Posta un commento o usa questo indirizzo per il trackback.

Trackback

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Google photo

Stai commentando usando il tuo account Google. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...

Questo sito utilizza Akismet per ridurre lo spam. Scopri come vengono elaborati i dati derivati dai commenti.

%d blogger hanno fatto clic su Mi Piace per questo: