Warm tip: This article is reproduced from stackoverflow.com, please click
gnuplot

bad quality of picture in gnuplot 4.6.1

发布于 2020-04-23 13:36:33

I have just shifted from gnuplot 4.4 to 4.6.1. And unluckily found that all the pictures in x11 terminal have lost in quality pretty much (low resolution). It seems to me smth is wrong with configuration of gnuplot (I compiled 4.6 from sources and did not apply any options to configure).

Has anybody encountered with such problem?

Best regards, Alexander

upd: here are the screenshots of 4.2 and 4.6 respectively: https://picasaweb.google.com/102562667690948164683/212012?authkey=Gv1sRgCPj9s7CH1Z3LgAE#5813182842354188578

https://picasaweb.google.com/102562667690948164683/212012?authkey=Gv1sRgCPj9s7CH1Z3LgAE#5813182919536461282

Questioner
Alexander
Viewed
39
MickLock 2012-12-04 16:49

The wxt terminal is indeed what you want.

It is enabled by default in the 'configure' script, so I assume you were missing one or more libraries it depends on, when you ran it. I just tried it with version 4.6.1 from sourceforge. The confgiure script gives you a list of requirements for the wxt terminal to be enabled. Look for the line

wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.10)

You need C++ (I assume you have that). For the others, on my almost clean Ubuntu 12.10 64bit installation, I needed to install 3 additional packages with their dependencies to enable the wxt terminal option. You want:

libcairo2-dev
libpango1.0-dev
libwxgtk2.8-dev

On debian-based distributions, you can do:

sudo apt-get install libcairo2-dev libpango1.0-dev libwxgtk2.8-dev

or install them manually on other systems. If you don't find them in your repositories, you can always get the latest versions from wxWidgets,cairo and pango. When you have the libraries installed, re-run ./configure and check that the wxt terminal line reads

wxt terminal: yes 

If it does, re-compile your gnuplot by make and make install and you can use gnuplot as before with nice output on the screen.