![]() With scale, the size of the tic marks can be adjusted. in and out change the tic marks to be drawn inwards or outwards. The postscript terminal uses its own font search path. Plot of file.dat This command works for a linux computer. mirror tells gnuplot to put unlabeled tics at the same positions on the opposite border. Furthermore, a default font for these drivers may be set via the environmental variable GNUPLOTDEFAULTGDFONT. For these drivers the font search path is controlled by the environmental variable GDFONTPATH. Key Title If you have several functions to plot and put a title. If you have another solution that works and is more convenient let me know, otherwise I suppose I can't do much about it. Several gnuplot terminal drivers access TrueType fonts via the gd library. gnuplot> set title font 'Helvetica,14' gnuplot> plot exp(x) The value, 14, is the size of the font. hershey-font-gnuplot renders Hershey vector font text in the. To get the x11 terminal find the fonts, this works for me:Įxport GDFONTPATH=/usr/share/fonts/TTF (of course you can source the variable any way you want)Īfter that calling wxmaxima and plotting for example "wxplot2d(sin(x), ) " gives me correct output. If you have several functions to plot and put a title for the entire keys, use key. The Hershey fonts are a collection of vector fonts developed circa 1967 by Dr. The gnuplot x11 terminal looks for ttf fonts in the path defined by the GDFONTPATH variable, which is by default undefined.Ĭalling gnuplot itself from the commandline defaults to the wxt terminal on my machine which uses pango/cairo to find fonts (and does so coorectly). As far as I'm aware changing locations in the source (src/variable.c) does not fix this.įrom my understanding when calling from either of these apps, the x11 terminal is used by default. ![]() ![]() I obviously don't know what fonts you have. But yes, you could probably also avoid it by specifying a different font to gnuplot: set term qt font 'Geneva,12'. I interpret it to mean that the font family 'Sans' is not installed on your machine. I looked into this but I can't find any indication that gnuplot is looking into /usr/X11R6/. It must be from some system-level utility that manages fonts.
0 Comments
Leave a Reply. |