Maxima – 263 – draw – 10

D2HY

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

filled_func
Default value: false.

Option filled_func controls how regions limited by functions should be filled. When filled_func is true, the region bounded by the function defined with object explicit and the bottom of the graphic window is filled with fill_color. When filled_func contains a function expression, then the region bounded by this function and the function defined with object explicit will be filled. By default, explicit functions are not filled.

A useful special case is filled_func = 0, which generates the region bond by the horizontal axis and the explicit function.

This option affects only the 2d graphic object explicit.

Region bounded by an explicit object and the bottom of the graphic window.

(%i1) draw2d(fill_color = red,
        filled_func = true,
        explicit(sin(x), x, 0, 10))$

263-0

Region bounded by an explicit object and the function defined by option filled_func. Note that the variable in filled_func must be the same as that used in explicit.

(%i2) draw2d(fill_color = grey,
        filled_func = sin(x),
        explicit(-sin(x), x, 0, %pi));
(%o2)                          [gr2d(explicit)]

263-1

See also fill_color and explicit.

font
Default value: "" (empty string).

This option can be used to set the font face to be used by the terminal. Only one font face and size can be used throughout the plot.

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

See also font_size.

Gnuplot doesn’t handle fonts by itself, it leaves this task to the support libraries of the different terminals, each one with its own philosophy about it. A brief summary follows:

x11 : Uses the normal x11 font server mechanism.

(%i3) draw2d(font = "Arial",
        font_size = 20,
        label(["Arial font, size 20", 1, 1]))$

263-2

(dalle prove fatte font_size non funziona)

windows: The windows terminal doesn’t support changing of fonts from inside the plot. Once the plot has been generated, the font can be changed right-clicking on the menu of the graph window.

png, jpeg, gif : The libgd library uses the font path stored in the environment variable GDFONTPATH; in this case, it is only necessary to set option font to the font’s name. It is also possible to give the complete path to the font file. Nota: la variabile GDFONTPATH per me è vuota.

Option font can be given the complete path to the font file:

(%i4) path: "/usr/share/fonts/truetype/freefont/" $

(%i5) file: "FreeSerifBoldItalic.ttf" $

(%i6) draw2d(
        font = concat(path, file),
        font_size = 20,
        color = red,
        label(["FreeSerifBoldItalic font, size 20",1,1]),
        terminal = png)$

maxima_out

If environment variable GDFONTPATH is set to the path where font files are allocated, it is possible to set graphic option font to the name of the font.

Postscript: Standard Postscript fonts are: "Times-Roman", "Times-Italic", "Times-Bold", "Times-BoldItalic", "Helvetica", "Helvetica-Oblique", "Helvetica-Bold", "Helvetica-BoldOblique", "Courier", "Courier-Oblique", "Courier-Bold", and "Courier-BoldOblique".

(%i9) draw2d(
        font = "Courier-Oblique",
        font_size = 15,
        label(["Courier-Oblique, size 15",1,1]),
        terminal = eps)$

263-4

pdf : Uses same fonts as Postscript.

pdfcairo: Uses same fonts as wxt.

wxt: The pango library finds fonts via the fontconfig utility.

aqua: Default is "Times-Roman".

The gnuplot documentation is an important source of information about terminals and fonts.

font_size
Default value: 10.

This option can be used to set the font size to be used by the terminal. Only one font face and size can be used throughout the plot. font_size is active only when option font is not equal to the empty string.

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

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: