本文介绍了gnuplot 4.6.1中图片质量差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从gnuplot 4.4转移到4.6.1.不幸的是,发现x11终端中的所有图片质量几乎都下降了(低分辨率).在我看来gnuplot的配置不正确(我从源代码编译了4.6,没有应用任何选项进行配置).

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:这分别是4.2和4.6的屏幕截图: https://picasaweb.google.com/102562667690948164683/212012?authkey=Gv1sRgCPj9318

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

推荐答案

wxt终端确实是您想要的.

The wxt terminal is indeed what you want.

默认情况下,它在配置"脚本中处于启用状态,因此我假设您在运行它时缺少它依赖的一个或多个库.我刚刚在 sourceforge 的4.6.1版本中进行了尝试.confgiure脚本为您提供了启用wxt终端的要求列表.寻找线

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)

您需要C ++(我想您已经拥有了).对于其他人,在几乎干净的Ubuntu 12.10 64位安装中,我需要安装3个其他软件包以及它们的依赖关系,以启用wxt终端选项.您想要:

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

在基于debian的发行版上,您可以执行以下操作:

On debian-based distributions, you can do:

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

或在其他系统上手动安装它们.如果您没有在存储库中找到它们,则始终可以从 wxWidgets ,和 pango .安装完库后,重新运行./configure并检查wxt终端行是否读取

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

如果确实如此,请使用makemake install重新编译gnuplot,您可以像以前一样使用gnuplot,并在屏幕上显示漂亮的输出.

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.

这篇关于gnuplot 4.6.1中图片质量差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!