How to set a title under a graph in gnuplot

Example:

set title "title" plot x 

This will draw a graph with a caption at the top. I want to move the title below the graph. What should I do? Moreover, what about the same problem in the multiplex. I want to move the headings for each small graph under each graph. Note that the title is not the title in the plot that will be placed on the keys. Many thanks!

+7
gnuplot title
source share
1 answer

The advantage of using set title is that some vertical space is automatically reserved for it. This only works when placing a heading over the chart.

You can place it below the chart by specifying offset . But in this case, you must adapt both the offset manually and the bottom field:

Consider the following example:

 set multiplot layout 1,3 set title "title" plot x set title "positive offset" offset 0,1 plot x set title "negative offset" offset 0,-2 plot x unset multiplot 

enter image description here

Once you have too much negative bias, the upper field is reset, as if you did not have a header, but the lower field remains unchanged.

Thus, you must set the label manually under the graphs and adjust the bottom field accordingly:

 set multiplot layout 1,3 set xlabel "xlabel" set label 11 center at graph 0.5,char 1 "first title" font ",14" set bmargin 5 plot x set label 11 "second title" plot x set label 11 "third title" plot x unset multiplot 

enter image description here

In any case, you will need manual intervention and setting fields.

+11
source share

All Articles