gluk47
gluk47

Reputation: 1820

Place key labels next to line ends

I have many lines on my plot for different values of one parameter, varying from 2 to 23. It's rather inconvenient and hard-to read to invent different linestyles and place them in a legend.

Instead, I want to label lines just next to their endings, so that it's obvious what line is for what parameter number and what the parameter growth direction is. All the lines then could be drawn just as solid black lines and printed black&white without any readability penalty.

Is it possible in gnuplot? Any version can be used, it does not matter.

Upvotes: 3

Views: 1592

Answers (1)

andyras
andyras

Reputation: 15910

This is possible in the cvs version (4.7.0) of gnuplot using the command

plot file title 'my beautiful data' at end

It may help to adjust the margins afterward with

set rmargin XX

since the labels will be to the right of the plot area and may go off the edge of the image. (gnuplot doesn't have very smart label placement/margin adjustment yet.)

Also see my similar question/answers here and here.

Upvotes: 4

Related Questions