Maxima – 269 – draw – 16

25SvoZoz

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

point_type
Default value: 1.

point_type indicates how isolated points are displayed; the value of this option can be any integer index greater or equal than -1, or the name of a point style:

     $none (-1)
     dot (0)
     plus (1)
     multiply (2)
     asterisk (3)
     square (4)
     filled_square (5)
     circle (6)
     filled_circle (7)
     up_triangle (8)
     filled_up_triangle (9)
     down_triangle (10)
     filled_down_triangle (11)
     diamant (12) and filled_diamant (13)

This option affects the graphic objects gr2d and gr3d.

(%i1) draw2d(xrange = [0,10],
        yrange = [0,10],
        point_size = 3,
        point_type = diamant,
        points([[1,1],[5,1],[9,1]]),
        point_type = filled_down_triangle,
        points([[1,2],[5,2],[9,2]]),
        point_type = asterisk,
        points([[1,3],[5,3],[9,3]]),
        point_type = filled_diamant,
        points([[1,4],[5,4],[9,4]]),
        point_type = 5,
        points([[1,5],[5,5],[9,5]]),
        point_type = 6,
        points([[1,6],[5,6],[9,6]]),
        point_type = filled_circle,
        points([[1,7],[5,7],[9,7]]),
        point_type = 8,
        points([[1,8],[5,8],[9,8]]),
        point_type = filled_diamant,
        points([[1,9],[5,9],[9,9]]) )$

269-1

points_joined
Default value: false.

When points_joined is true, points are joined by lines; when false, isolated points are drawn. A third possible value for this graphic option is impulses; in such case, vertical segments are drawn from points to the x-axis (2D) or to the xy-plane (3D).

(%i2) draw2d(xrange = [0,10],
        yrange = [0,4],
        point_size = 3,
        point_type = up_triangle,
        color = blue,
        points([[1,1],[5,1],[9,1]]),
        points_joined = true,
        point_type = square,
        line_type = dots,
        points([[1,2],[5,2],[9,2]]),
        point_type = circle,
        color = red,
        line_width = 7,
        points([[1,3],[5,3],[9,3]]) )$

269-2

proportional_axes
Default value: none.

When proportional_axes is equal to xy or xyz, the aspect ratio of the axis units will be set to 1:1 resulting in a 2D or 3D scene that will be drawn with axes proportional to their relative lengths. Since this is a global graphics option, its position in the scene description does not matter.

This option works with Gnuplot version 4.2.6 or greater.

Single 2D plot.

(%i3) draw2d(
        ellipse(0,0,1,1,0,360),
        transparent=true,
        color = blue,
        line_width = 4,
        ellipse(0,0,2,1/2,0,360),
        proportional_axes = 'xy) $

269-3

Multiplot.

(%i4) draw(
        terminal = wxt,
        gr2d(proportional_axes = 'xy,
            explicit(x^2, x, 0, 1)),
        gr2d(explicit(x^2, x, 0, 1),
            xrange = [0,1],
            yrange = [0,2],
            proportional_axes='xy),
        gr2d(explicit(x^2, x, 0, 1)))$

269-4

surface_hide
Default value: false.

If surface_hide is true, hidden parts are not plotted in 3d surfaces. Since this is a global graphics option, its position in the scene description does not matter.

(%i5) draw(columns=2,
        gr3d(explicit(exp(sin(x)+cos(x^2)),x,-3,3,y,-3,3)),
        gr3d(surface_hide = true,
            explicit(exp(sin(x)+cos(x^2)),x,-3,3,y,-3,3)) )$

269-5

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: