有什么方法可以防止gnuplot xticlabel截断长字符串吗? [英] Any way to prevent gnuplot xticlabel from truncating long strings?

查看:101
本文介绍了有什么方法可以防止gnuplot xticlabel截断长字符串吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据文件,其中设置了如下几行:

I have a data file with several lines set up like this:

"Simplifying or consolidating services or product portfolios"   .35

当我尝试按以下方式在gnuplot中绘制此字符时,任何长于51个字符的字符串都会被截断为52个字符,最后一个字符是某种符号(例如,盒子,荆棘,y umlaut).

When I try to plot this in gnuplot as follows, any string longer than 51 characters is truncated to 52 characters with the last character being a symbol of some sort (e.g. a box, thorn, y umlaut).

plot 'force.dat' u 2 title ' ', '' u 0:(0):xticlabel(1) w l

我无法找到有关xticlabel的最大长度的任何信息,但似乎我已经达到最大.我有什么办法可以在图形上打印出完整的字符串?

I haven't been able to find any information about a maximum legnth for xticlabel, but it seems like I've hit the maximum. Is there anything I can do to print out the full string on the graph?

预先感谢

推荐答案

似乎没有动态的方式来增加长度.它是硬编码的.

There doesn't seem to be a dynamic way of increasing the length. It is hard-coded.

您可以做的是编译自己的版本,其中将常量MAX_ID_LEN设置为一个相当大的数字(在文件gp_types.h中定义).

What you can do is compile your own version where the constant MAX_ID_LEN is set to some reasonably large number (it's defined in file gp_types.h).

(我将其报告为错误.)

这篇关于有什么方法可以防止gnuplot xticlabel截断长字符串吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆