Maxima – 262 – draw – 9

marisa

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

Continuo con gli esempi di enhanced3d.

tube object with coloring defined by the [f(x,y,z), x, y, z] model.

(%i1) draw3d(
        enhanced3d = [cos(x-y),x,y,z],
        palette = gray,
        xu_grid = 50,
        tube(cos(a), a, 0, 1, a, 0, 4*%pi) )$

262-0

tube object with coloring defined by the [f(u), u] model. Here, enhanced3d = -a would be the shortcut for enhanced3d = [-foo,foo].

(%i2) draw3d(
        capping = [true, false],
        palette = [26,15,-2],
        enhanced3d = [-foo, foo],
        tube(a, a, a^2, 1, a, -2, 2) )$

262-1

implicit and points objects with coloring defined by the [f(x,y,z), x, y, z] model.

(%i3) draw3d(
        enhanced3d = [x-y,x,y,z],
        implicit((x^2+y^2+z^2-1)*(x^2+(y-1.5)^2+z^2-0.5)=0.015,
        x,-1,1,y,-1.2,2.3,z,-1,1)) $

262-2

points

(%i4) m: makelist([random(1.0),random(1.0),random(1.0)],k,1,2000)$

(%i5) draw3d(
        point_type = filled_circle,
        point_size = 2,
        enhanced3d = [u+v-w,u,v,w],
        points(m) ) $

262-3

When points have a chronological nature, model [f(k), k] is also valid, being k an ordering parameter.

(%i10) m:makelist([random(1.0), random(1.0), random(1.0)],k,1,100)$

(%i11) draw3d(
        enhanced3d = [sin(j), j],
        point_size = 3,
        point_type = filled_circle,
        points_joined = true,
        points(m)) $

262-4

error_type
Default value: y.

Depending on its value, which can be x, y, or xy, graphic object errors will draw points with horizontal, vertical, or both, error bars. When error_type=boxes, boxes will be drawn instead of crosses. See also errors.

file_name
Default value: "maxima_out".

This is the name of the file where terminals png, jpg, gif, eps, eps_color, pdf, pdfcairo and svg will save the graphic.

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.

(%i12) draw2d(file_name = "myfile",
        explicit(x^2, x, -1, 1),
        terminal = 'png)$

crea myfile.png.

myfile

See also terminal, dimensions_draw.

fill_color
Default value: "red".

fill_color specifies the color for filling polygons and 2d explicit functions. See color to learn how colors are specified.

fill_density
Default value: 0.

fill_density is a number between 0 and 1 that specifies the intensity of the fill_color in bars objects. See bars for examples.

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: