|
From: Ethan A M. <sf...@us...> - 2016-03-04 00:56:12
|
On Thursday, 03 March, 2016 16:22:32 Thomas Mattison wrote: > The main capability lacking from plain vanilla gnuplot built on my 10.6.8 Mac from source is the ability to make png or gif output. > > What is the minimal set of packages I need to have to get png or gif terminal types? gif === gif is supported only by the gd terminal (libgd). The only reason I know of that you would need this is so that you can generate animated gifs directly from gnuplot. It is possible to make animations from a series of png images, but you would need to create the individual frames and then use an external tool to stitch them together into an animation. png === png images can be generated by the gd terminal (libgd), by the cairo terminals, by wxt (via a "save as" button) and by qt (also via a "save as" button). > I'd also like to be able to make pdf output. What is the minimal set of packages to make pdf output? Three choices: qt: if you have the qt support libraries, then you can create pdf output via a "save as" button from the qt terminal. I personally think the qt terminal is the best interactive option that gnuplot supports, so I'd go with this if you can find the support libraries. cairo: "set term pdf" will default to the cairo terminal if you have it. The downside here is that it requires at least the cairo, pango, pangocairo, and lgobject libraries, and you may or may not be able to use copies built by someone else. TeX: The tikz terminal produces very nice pdf output, but it requires separate installation of lua and TeX/pdflatex. On the gnuplot side the only extra library is liblua. As with Qt, this may be a good option if you can find a suitable ready-to-install TeX package. Not practical to build from scratch however. > Or is there some way to trick the postscript terminal to make pdf output? The plot part is trivial (same conversion as for *.eps files). However a major reason for choosing pdf rather than postscript output is that postscript cannot handle UTF-8 text. UTF-8 makes life so much easier for math/greek/symbols, it would be a pity to limit your pdf output to things that postscript can handle. Ethan > (I know that the postscript terminal can make eps output, which is not hard to convert to pdf. And I know that if I install Aquaterm before the gnuplot build, then the "aqua" terminal type appears, and Aquaterm can save its window to a pdf file) > > > It would be nice to make a Mac version of Gnuplot that supported all terminal types that are supported in the Windows version. > > What terminal types are supported in the Windows version of gnuplot? > What packages are required so they could be available to a Mac version? > > > > > > Cheers > > Prof. Thomas Mattison Hennings 276 > University of British Columbia Dept. of Physics and Astronomy > 6224 Agricultural Road Vancouver BC V6T 1Z1 CANADA > mat...@ph... phone: 604-822-9690 fax:604-822-5324 |