Maxima – 267 – draw – 14

cll2

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

line_width
Default value: 1.

line_width is the width of plotted lines. Its value must be a positive number.

This option affects the following graphic objects:

  • gr2d: points, polygon, rectangle, ellipse, vector, explicit, implicit, parametric and polar.
  • gr3d: points and parametric.
(%i1) draw2d(explicit(x^2, x, -1, 1), /* default width */
        line_width = 5.5,
        explicit(1 + x^2, x, -1, 1),
        line_width = 10,
        explicit(2 + x^2, x, -1, 1))$

267-0

logcb
Default value: false.

If logcb is true, the tics in the colorbox will be drawn in the logarithmic scale. When enhanced3d or colorbox is false, option logcb has no effect. Since this is a global graphics option, its position in the scene description does not matter.

(%i2) draw3d (
        enhanced3d = true,
        color = green,
        logcb = true,
        logz = true,
        palette = [-15, 24, -9],
        explicit(exp(x^2-y^2), x, -2, 2, y, -2, 2)) $

267-1

See also enhanced3d, colorbox and cbrange.

logx
Default value: false.

If logx is true, the x axis will be drawn in the logarithmic scale. Since this is a global graphics option, its position in the scene description does not matter, with the exception that it should be written before any 2D explicit object, so that draw can produce a better plot.

(%i3) draw2d(logx = true,
        explicit(log(x), x, 0.01, 5))$

267-2

See also logy, logx_secondary, logy_secondary, and logz.

logx_secondary
Default value: false.

If logx_secondary is true, the secondary x axis will be drawn in the logarithmic scale. This option is relevant only for 2d scenes. Since this is a global graphics option, its position in the scene description does not matter.

(%i4) draw2d(
        grid = true,
        key="x^2, linear scale",
        color=red,
        explicit(x^2, x, 1, 100),
        xaxis_secondary = true,
        xtics_secondary = true,
        logx_secondary = true,
        key = "x^2, logarithmic x scale",
        color = blue,
        explicit(x^2, x, 1, 100))$

267-3

See also logx_draw, logy_draw, logy_secondary, and logz.

logy
Default value: false.

If logy is true, the y axis will be drawn in the logarithmic scale. Since this is a global graphics option, its position in the scene description does not matter.

(%i5) draw2d(logy = true,
        explicit(exp(x), x, 0, 5))$

267-4

See also logx_draw, logx_secondary, logy_secondary, and logz.

logy_secondary
Default value: false.

If logy_secondary is true, the secondary y axis will be drawn in the logarithmic scale. This option is relevant only for 2d scenes. Since this is a global graphics option, its position in the scene description does not matter.

(%i6) draw2d(
        grid = true,
        key="x^2, linear scale",
        color=red,
        explicit(x^2, x, 1, 100),
        yaxis_secondary = true,
        ytics_secondary = true,
        logy_secondary = true,
        key = "x^2, logarithmic y scale",
        color = blue,
        explicit(x^2, x, 1, 100))$

267-5

See also logx_draw, logy_draw, logx_secondary, and logz.

logz
Default value: false.

If logz is true, the z axis will be drawn in the logarithmic scale. Since this is a global graphics option, its position in the scene description does not matter.

(%i7) draw3d(logz = true,
        explicit(exp(u^2+v^2), u, -2, 2, v, -2, 2))$

267-6

See also logx_draw and logy_draw.

nticks
Default value: 29.

In 2d, nticks gives the initial number of points used by the adaptive plotting routine for explicit objects. It is also the number of points that will be shown in parametric and polar curves.

This option affects the following graphic objects:

  • gr2d: ellipse, explicit, parametric and polar.
  • gr3d: parametric.

See also adapt_depth.

(%i8) draw2d(transparent = true,
        ellipse(0, 0, 4, 2, 0, 180),
        nticks = 5,
        ellipse(0, 0, 4, 2, 180, 180))$

267-7

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 di 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: