Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I increase the font size of the ylabel in gnuplot?

Tags:

gnuplot

I tried to do set yabel={/*2.0 MyLabel} based on the answer to this question, but that just printed the ylabel with those literals.

like image 546
merlin2011 Avatar asked Aug 08 '13 07:08

merlin2011


People also ask

How to change the font size of gnuplot labels?

Several methods are available for Gnuplot: Set the global fonts size for the terminal: set terminal enhanced font 'Verdana,10' Here, 10 is the font size. Set the key fonts: set key font ",10" Here, 10 is the font size. Set the fonts for labels of x- and y-axis: set xtics font "Verdana,10" Here, 10 is the font size.

How do I change the font size of the xlabel?

You can specify the font options simply by using the font argument like so: set xlabel "x-units" font "Times-Roman,12" set ylabel "y-units" font "Times-Roman,12" Or you can just leave out either parameter, say for example if you want to set the font size but not the font face: set xlabel "x-units" font ",12" set ylabel "y-units" font ",12"

How to change the text size of a ggplot2 legend?

We can also change how large the text elements of a ggplot2 legend are. With the following R syntax, we can increase the text size of the legend text: Figure 10: Changing Font Size of Legend Text. And with the following R code, we can change the size of the legend title: Figure 11: Changing Font Size of Legend Title.

How to change the font size of all elements in a plot?

Example 1: Change the Font Size of All Elements. The following code shows how to change the font size of every element in the plot: #set font of all elements to size 15 plt.rc('font', size=15) #create plot plt.scatter(x, y) plt.title('title') plt.xlabel('x_label') plt.ylabel('y_label') plt.show()


1 Answers

You can specify the font options simply by using the font argument like so:

set xlabel "x-units" font "Times-Roman,12"
set ylabel "y-units" font "Times-Roman,12"

Or you can just leave out either parameter, say for example if you want to set the font size but not the font face:

set xlabel "x-units" font ",12"
set ylabel "y-units" font ",12"

The official gnuplot documentation can be found here, and I'd also recommend checking out http://www.gnuplotting.org/

like image 113
lindhe Avatar answered Oct 05 '22 18:10

lindhe