Gnuplot can create valid PostScript or encapsulated PostScript (*.eps) even if no fonts at all are installed on your computer. Postscript (also encapsulated postscript *.eps) PostScript font handling is done by the printer or viewing program. If no specific font is requested in the "set term " command, gnuplot checks the environmental variable GNUPLOT_DEFAULT_GDFONT to see if there is a preferred default font. Set term png font "/usr/local/fonts/pfa/Helvetica.pfa" To request a default font size at the same time: set term png font "arial,11"īoth TrueType and Adobe Type 1 fonts are fully scalable and rotatable. Set term png font "/usr/local/fonts/ttf/arial.ttf" For example, if GDFONTPATH contains /usr/local/fonts/ttf:/usr/local/fonts/pfa then the following pairs of commands are equivalent set term png font "arial" That is, 'set term png font "Face "' will look for a font file named either /Face.ttf or /Face.pfa. is either the full pathname to the font file, or the first part of a filename in one of the directories listed in the GDFONTPATH environmental variable. You must give the name of the font file, not the name of the font inside it, in the form " ". On most systems libgd also provides access to Adobe Type 1 fonts (*.pfa) and TrueType fonts (*.ttf). Use one of these keywords instead of the font keyword. These are tiny (5x8 pixels), small (6x12 pixels), medium, (7x13 Bold), large (8x16) or giant (9x15 pixels). Five basic fonts are provided directly by libgd. Set term pdfcairo font "Times-New-Roman,12" Gd (png, gif, jpeg, sixel terminals) Font handling for the png, gif, jpeg, and sixelgd terminals is done by the library libgd. The following will probably all work: set term pdfcairo font "sans,12" It is usually sufficient in gnuplot to request a font by a generic name and size, letting fontconfig substitute a similar font if necessary. Cairo (pdfcairo, pngcairo, epscairo, wxt terminals) These terminals find and access fonts using the external fontconfig tool set. the Adobe Symbol font, the preferred method is now to specify the unicode entry point for the desired symbols using their UTF-8 encoding. For information on font use by other individual terminals, see the documentation for that terminal.Īlthough it is possible to include non-alphabetic symbols by temporarily switching to a special font, e.g. Brief documentation of font mechanisms that apply to more than one terminal type is given here. It relies on external font handling, the details of which unfortunately vary from one terminal type to another. Set label 8 '\ft $E_0 = 100$\,meV' at 1.46,5e18 rotate by -40.Fonts Gnuplot does not provide any fonts of its own. Set label 2 '\ft $5$\,meV' at 1.38,4e9 rotate by 78.5 center tc ls 1 Set terminal epslatex size 9cm,7cm color colortext standalone header \Īfter the definition of the abbreviation we can use it for every label we are interested in. First we introduce a abbreviation for the font size by adding a command definition to the header of our latex file. The label size is changed by setting it to \footnotesize with the following code. ( code to produce this figure, data)įigure 1 shows again the photon flux density from one of the last posts, but this time plotted with the epslatex terminal. 1 Photon flux density for different characteristic tail state energies E0 dependent on the photon energy.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |