If you have another solution that works and is more convenient let me know, otherwise I suppose I can't do much about it. As you can see you will always get Latin Modern font at 12pt unless you explic. 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. Gnuplot 4.6.0 or later with context and/or tikz terminal built in. I will describe the bits of the command set terminal gif font calibri,20. Please write to gnuplot-beta mailing list if you know any other useful links. using internal non-scalable font Version-Release number of selected component. 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). If you want to expand the fonts that gnuplot knows about when printing image. If I do: set terminal postscript font Georgia, this produces the graph output using Georgia as. Bug 537960 - gnuplot: Could not find/open font when opening font arial. A new default font may be specified to the x11 driver from inside gnuplot using. Example: gnuplotfont: lucidasans-bold-12. 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. Upon initial startup, the default font is taken from the X11 resources as set in the system or user. For example: set key font ',20' would set the size of the font to 20. I looked into this but I can't find any indication that gnuplot is looking into /usr/X11R6/. The font for the key can be set in gnuplot 4.4. The easiest way to find out which font name is generated for use with gnuplot, start gnuplot in interactive mode and type in 'set terminal postscript fontfile '.
0 Comments
Leave a Reply. |