gnuplot: italics for label part


Woods

Sorry for the (probably) basic question, but I'm just getting started with gnuplot. What I want is to create an axis label with a section in italics. It's just like:

xlabel: not italic, italic

I know it's easy to set the label to italic (set the xlabel font to "Times-Italic", set to 20), but is it possible to italicize only part of the label?

Christopher

In general, you can use enhanced text mode to change the font of parts of a string:

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

Unfortunately not all terminals support that behavior, see bold enhanced text in gnuplot and related bug report #1240 .

It works with postscriptand pngterminal, but not with pngcairoand pdfcairo.

Related


Gnuplot - Label Cutout Plot

Charlie Roach My x and y labels are truncated I found the "cropped/untrimmed" option, but it didn't work. How to set margins? As you can see, the header (top right) is overwritten by the data. How can I set the margins there? The following code is from my bash

gnuplot: compact axis label format

Rihar Tell me how to properly form inscriptions on the axes in gnuplot (as shown). 1) I don't know the value of the y axis 2) I need to set the exponent (power 10) automatically in the axis labels Siorge Before plotting, you need to know the order of magnitude

Adjusting the set label command in Gnuplot

Chaitanya Majjari I'm having some issues adapting the set label command to my requirements. I have to insert a label at the top left of the figure. My labels contain math exponents. So I use the following command set label 1 '$\times10^{-7}$' at graph 0,1.025

gnuplot x label position in histogram

Panichi Pattumeros PapaCastoro I have the following data: t_4 24 3 0 0 t_6 37 4 0 0 t_8 51 4 2 0 t_4 15 1 0 0 t_6 21 0 0 1 t_8 30 0 0 1 t_4 13 2 1 0 t_6 20 3 1 0 t_8 22 4 1 0 and I try to make a histogram similar to this http://www.bmsc.washington.edu/peop

gnuplot: compact axis label format

Rihar Tell me how to properly form inscriptions on the axes in gnuplot (as shown). 1) I don't know the value of the y axis 2) I need to set the exponent (power 10) automatically in the axis labels Siorge Before plotting, you need to know the order of magnitude

gnuplot x label position in histogram

Panichi Pattumeros PapaCastoro I have the following data: t_4 24 3 0 0 t_6 37 4 0 0 t_8 51 4 2 0 t_4 15 1 0 0 t_6 21 0 0 1 t_8 30 0 0 1 t_4 13 2 1 0 t_6 20 3 1 0 t_8 22 4 1 0 and I try to make a histogram similar to this http://www.bmsc.washington.edu/peop

Gnuplot: disable part of plotting commands

Hochik Suppose I have the following simple gnuplot file: set term pdf set output "test.pdf" plot\ sin(x),\ cos(x),\ 0.5 For now, I just want to comment lines temporarily cos(x),\. However, using the comment character # results in an incorrect gnu

Gnuplot: disable part of plotting commands

Hochik Suppose I have the following simple gnuplot file: set term pdf set output "test.pdf" plot\ sin(x),\ cos(x),\ 0.5 For now, I just want to comment lines temporarily cos(x),\. However, using the comment character # results in an incorrect gnu

Gnuplot: disable part of plotting commands

Hochik Suppose I have the following simple gnuplot file: set term pdf set output "test.pdf" plot\ sin(x),\ cos(x),\ 0.5 For now, I just want to comment lines temporarily cos(x),\. However, using the comment character # results in an incorrect gnu

Gnuplot - "Zoom in" part of X axis

Petr Osipov I have a row of data with many points on it, plotted as markers. The X-axis values range from 0 to 80 ms, and the Y-values have discrete values of 1, 2, .. 5. There are about 50000 points, so if I plot them as usual, the dynamics of the Y value cha

Gnuplot: disable part of plotting commands

Hochik Suppose I have the following simple gnuplot file: set term pdf set output "test.pdf" plot\ sin(x),\ cos(x),\ 0.5 For now, I just want to comment lines temporarily cos(x),\. However, using the comment character # results in an incorrect gnu

Gnuplot: disable part of plotting commands

Hochik Suppose I have the following simple gnuplot file: set term pdf set output "test.pdf" plot\ sin(x),\ cos(x),\ 0.5 For now, I just want to comment lines temporarily cos(x),\. However, using the comment character # results in an incorrect gnu

Gnuplot - "Zoom in" part of X axis

Petr Osipov I have a row of data with many points on it, plotted as markers. The X-axis values range from 0 to 80 ms, and the Y-values have discrete values of 1, 2, .. 5. There are about 50000 points, so if I plot them as usual, the dynamics of the Y value cha

Check if the label I clicked is part of the label pattern

Esben Jule Dalsgaard I'm working on a game about remembering label patterns that show through them changing color. The user must then click the displayed labels in the correct order. After a random pattern is chosen, it goes into a list called "patterns". My q

Check if the label I clicked is part of the label pattern

Esben Jule Dalsgaard I'm working on a game about remembering label patterns that show through them changing color. The user must then click the displayed labels in the correct order. After a random pattern is chosen, it goes into a list called "patterns". My q

Gnuplot calculate slope and convert to angle for label alignment

Jangari I'm working with a colleague's Gnuplot script for some internal reporting, and I've learned a lot from this awesome tool that I've only used in the past. I'm refactoring the code so that I can change the global variables that drive the plot, like yearl

Increase the label width of the y-axis in gnuplot

Tobias S. Good morning, How to increase the width of y-tics labels in gnuplot? Or another way.. how can I increase the size of the plot without increasing the full size? I have a data.csvlike: 46,21,1,2,v_64 44,20,2,2,v_65 37,20,3,2,v_69 44,18,4,3,v_70 63,21,5

Gnuplot calculate slope and convert to angle for label alignment

Jangari I'm working with a colleague's Gnuplot script for some internal reporting, and I've learned a lot from this awesome tool that I've only used in the past. I'm refactoring the code so that I can change the global variables that drive the plot, like yearl

Gnuplot calculate slope and convert to angle for label alignment

Jangari I'm working with a colleague's Gnuplot script for some internal reporting, and I've learned a lot from this awesome tool that I've only used in the past. I'm refactoring the code so that I can change the global variables that drive the plot, like yearl

gnuplot: Label overflow outside canvas not drawn

Zohar Levi I put the labels on top of the histogram bars (offset 10): plot "hist.txt" using 1:2 with boxes ls 1, "hist.txt" using 1:($2+10):(sprintf("%.1f%%",$2)) with labels When the bar value is 87%, the labels are drawn. When the bar value is 92%, there ma

Is there a way to add a label to the last entry in gnuplot?

Ashish kulkarni I would like to use gnuplot for realtime plotting (append data to a file for plotting and use replot for realtime plotting). I also want to add a label for the latest entry drawn. in order to know the latest value. Is there a way to do this? wi

Is it possible to read label values in gnuplot from a file

Neverland Creating labels in gnulot is very easy set label "<value>" at <x,y> ... But I want to read the values of the labels in gnuplot from a file. The lines in the file look like this: ... 400 300 8 0.200214 1.00193 7.42157 8.623714 86.06 13.94 1.26 800 60

gnuplot: Label overflow outside canvas not drawn

Zohar Levi I put the labels on top of the histogram bars (offset 10): plot "hist.txt" using 1:2 with boxes ls 1, "hist.txt" using 1:($2+10):(sprintf("%.1f%%",$2)) with labels When the bar value is 87%, the labels are drawn. When the bar value is 92%, there ma

Gnuplot calculate slope and convert to angle for label alignment

Jangari I'm working with a colleague's Gnuplot script for some internal reporting, and I've learned a lot from this awesome tool that I've only used in the past. I'm refactoring the code so that I can change the global variables that drive the plot, like yearl

Gnuplot calculate slope and convert to angle for label alignment

Jangari I'm working with a colleague's Gnuplot script for some internal reporting, and I've learned a lot from this awesome tool that I've only used in the past. I'm refactoring the code so that I can change the global variables that drive the plot, like yearl

gnuplot: Label overflow outside canvas not drawn

Zohar Levi I put the labels on top of the histogram bars (offset 10): plot "hist.txt" using 1:2 with boxes ls 1, "hist.txt" using 1:($2+10):(sprintf("%.1f%%",$2)) with labels When the bar value is 87%, the labels are drawn. When the bar value is 92%, there ma

gnuplot: Label overflow outside canvas not drawn

Zohar Levi I put the labels on top of the histogram bars (offset 10): plot "hist.txt" using 1:2 with boxes ls 1, "hist.txt" using 1:($2+10):(sprintf("%.1f%%",$2)) with labels When the bar value is 87%, the labels are drawn. When the bar value is 92%, there ma