Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gnuplot: italics in a portion of a label

Tags:

plot

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: Not italics, italics

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?

like image 543
Memento Mori Avatar asked Nov 18 '13 01:11

Memento Mori


1 Answers

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}"

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

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

like image 155
Christoph Avatar answered Oct 09 '22 15:10

Christoph