Maxima – 266 – draw – 13

sl106

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

key
Default value: "" (empty string).

key is the name of a function in the legend. If key is an empty string, no key is assigned to the function.

This option affects the following graphic objects:

  • gr2d: points, polygon, rectangle, ellipse, vector, explicit, implicit, parametric and polar.
  • gr3d: points, explicit, parametric and parametric_surface.
(%i1) draw2d(key = "Sinus",
        explicit(sin(x),x,0,10),
        key = "Cosinus",
        color = red,
        explicit(cos(x),x,0,10) )$

266-0

key_pos
Default value: "" (empty string).

key_pos defines at which position the legend will be drawn. If key is an empty string, "top_right" is used. Available position specifiers are: top_left, top_center, top_right, center_left, center, center_right, bottom_left, bottom_center, and bottom_right.

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

(%i2) draw2d(
        key_pos = top_left,
        key = "x",
        explicit(x, x,0,10),
        color= red,
        key = "x squared",
        explicit(x^2,x,0,10))$

(%i3) draw3d(
        key_pos = center,
        key = "x",
        explicit(x+y,x,0,10,y,0,10),
        color= red,
        key = "x squared",
        explicit(x^2+y^2,x,0,10,y,0,10))$

266-1
266-1-1

label_alignment
Default value: center.

label_alignment is used to specify where to write labels with respect to the given coordinates. Possible values are: center, left, and right.

This option is relevant only for label objects.

(%i4) draw2d(xrange = [0,10],
        yrange = [0, 10],
        points_joined = true,
        points([[5, 0], [5, 10]]),
        color = blue,
        label(["Centered alignment (default)", 5, 2]),
        label_alignment = 'left,
        label(["Left alignment", 5, 5]),
        label_alignment = 'right,
        label(["Right alignment", 5, 8]))$

266-2

See also label_orientation, and color.

label_orientation
Default value: horizontal.

label_orientation is used to specify orientation of labels. Possible values are: horizontal, and vertical.

This option is relevant only for label objects.

In this example, a dummy point is added to get an image. Package draw needs always data to draw an scene.

(%i5) draw2d(xrange = [0, 10],
        yrange = [0, 10],
        point_size = 0,
        points([[5, 5]]),
        color = navy,
        label(["Horizontal orientation (default)", 5, 2]),
        label_orientation = 'vertical,
        color = "#654321",
        label(["Vertical orientation", 1, 5]))$

266-3

See also label_alignment and color.

line_type
Default value: solid.

line_type indicates how lines are displayed; possible values are solid and dots, both available in all terminals, and dashes, short_dashes, short_long_dashes, short_short_long_dashes, and dot_dash, which are not available in png, jpg, and gif terminals.

This option affects the following graphic objects:

  • gr2d: points, polygon, rectangle, ellipse, vector, explicit, implicit, parametric and polar.
  • gr3d: points, explicit, parametric and parametric_surface.
(%i6) draw2d(line_type = dots,
        explicit(1 + x^2, x, -1, 1),
        line_type = solid, /* default */
        explicit(2 + x^2, x, -1, 1))$

266-4

See also line_width.

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: