Maxima – 270 – draw – 17

D2Du

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

terminal
Default value: screen.

Selects the terminal to be used by Gnuplot; possible values are: screen (default), png, pngcairo, jpg, gif, eps, eps_color, epslatex, epslatex_standalone, svg, canvas, dumb, dumb_file, pdf, pdfcairo, wxt, animated_gif, multipage_pdfcairo, multipage_pdf, multipage_eps, multipage_eps_color, and aquaterm.

Terminals screen, wxt, windows and aquaterm can be also defined as a list with two elements: the name of the terminal itself and a non negative integer number. In this form, multiple windows can be opened at the same time, each with its corresponding number. This feature does not work in Windows platforms.

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.

N.B. pdfcairo requires Gnuplot 4.3 or newer.pdf requires Gnuplot to be compiled with the option –enable-pdf and libpdf must be installed. The pdf library is available from here.

(%i1) /* screen terminal (default) */
      draw2d(explicit(x^2,x,-1,1))$

(%i2) /* png file */
      draw2d(terminal = 'png,
        explicit(x^2,x,-1,1))$

(%i3) /* jpg file */
      draw2d(terminal = 'jpg,
        dimensions = [300,300],
        explicit(x^2,x,-1,1))$

(%i4) /* eps file */
      draw2d(file_name = "myfile",
        explicit(x^2,x,-1,1),
        terminal = 'eps)$

(%i5) /* pdf file */
      draw2d(file_name = "mypdf",
        dimensions = 100*[12.0,8.0],
        explicit(x^2,x,-1,1),
        terminal = 'pdf)$

(%i6) /* wxwidgets window */
      draw2d(explicit(x^2,x,-1,1),
        terminal = 'wxt)$

270-0
270-0-1

inoltre:

$ ls my* maxima*
maxima_out.jpg  maxima_out.png  myfile.eps  mypdf.pdf

Multiple windows.

(%i7) draw2d(explicit(x^5,x,-2,2), terminal=[screen, 3])$

(%i8) draw2d(explicit(x^2,x,-2,2), terminal=[screen, 0])$

270-1-0
270-1-1

An animated gif file.

(%i9) draw(
        delay = 100,
        file_name = "zzz",
        terminal = 'animated_gif,
        gr2d(explicit(x^2,x,-1,1)),
        gr2d(explicit(x^3,x,-1,1)),
        gr2d(explicit(x^4,x,-1,1)));
3 frames in animation sequence
(%o9)          [gr2d(explicit), gr2d(explicit), gr2d(explicit)]

zzz-res

Option delay is only active in animated gif’s; it is ignored in any other case.

Multipage output in eps format.

(%i10) draw(
        file_name = "parabol",
        terminal = multipage_eps,
        dimensions = 100*[10,10],
        gr2d(explicit(x^2,x,-1,1)),
        gr3d(explicit(x^2+y^2,x,-1,1,y,-1,1))) $

OOPS! non ci sono riuscito, non ho capito perché.

See also file_name, dimensions_draw and delay.

title
Default value: "" (empty string).

Option title, a string, is the main title for the scene. By default, no title is written. Since this is a global graphics option, its position in the scene description does not matter.

(%i13) draw2d(explicit(exp(u),u,-2,2),
         title = "Exponential function")$

270-4

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: