One header for multisets in gnuplot

I use gnuplot to create two charts next to each other. I would like to give all one title, but if I use the standard set title "blah" command, I get two headings - one for each plot. How can I get only one heading (centered above the graphs)?

+6
source share
1 answer

to try:

 set multiplot layout 1,2 title "blah" 

Of course, this can be combined with heading set commands so that you can have a page title (from the animation) and then separate story titles (from set title ).

Here is a stupid example illustrating all the different places where "title" is used .:

 set multiplot layout 1,2 title "Sine and Cosine" set title "Sine is coolest!" plot sin(x) set title "Cosine is coolest!" plot cos(x) title "Cool",tan(x) title "Lame" 

If you want finer control over the page title, you can always use a label that defines the coordinates as a screen. Just add it before the last plot, and you're done. (If you add it before the first graph, the same label can be drawn several times, which is probably not the way you want.)

For instance:

 set label "Sine and Cosine" at screen 0.5,0.95 center front 

`

+8
source

Source: https://habr.com/ru/post/911513/


All Articles