本文介绍了gnuplot:标签部分的斜体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉(可能是)基本问题,但是我才刚开始使用gnuplot.我想要的是创建一个轴标签,并用斜体显示其中的一部分.像这样:

Sorry for the (probably) basic question but I'm just getting started with gnuplot. What I'd like is to create an axis label with a portion of it in italics. Something like:

xlabel:不是斜体,斜体

xlabel: Not italics, italics

我知道设置标签以显示斜体很容易(将xlabel字体设置为"Times-Italic",设置为20),但是是否可以仅将标签的一部分用斜体显示?

I understand it's easy to set a label to display italics (set xlabel font "Times-Italic", 20), but is it possible to have only a portion of the label in italics?

推荐答案

通常,您可以使用增强型文本模式来更改部分字符串的字体:

Usually you can use the enhanced text mode to change the font for parts of a string:

set termoption enhanced
set xlabel "not italics, {/Times-Italic italics}"

不幸的是,并非所有终端都支持该行为,请参见 gnuplot中的粗体增强文本和相关的错误报告#1240 .

Unfortunately, that behaviour is not supported by all terminals, see bold enhanced text in gnuplot and the related bug report #1240.

例如使用postscriptpng端子,但是 not 不能用于pngcairopdfcairo.

It works e.g. with the postscript and png terminals, but does not work with pngcairo and pdfcairo.

这篇关于gnuplot:标签部分的斜体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-27 15:02