|
From: Kevin K. <kk...@gm...> - 2015-02-03 23:37:56
|
I am trying to use Gnuplot 5's hypertext labels in conjunction with multiple datasets on the same plot and am finding that when I add the hypertext labels it removes the identifying color markings in my key. The following works fine and produces a plot with a legend/key in the upper right with a blue box next to v5 and a green box next to v6: set term svg size 600,400 dynamic mousing name "test" set output "test.svg" plot "data_file.txt" using 1:2 title 'v5' w point pt 5 lc rgb 'blue', "data_file.txt" using 4:5 title 'v6' w point pt 5 lc rgb 'green' Now I want to recreate the same plot with some hypertext labels: set term svg size 600,400 dynamic mousing name "test" set output "test.svg" plot "data_file.txt" using 1:2:3 title 'v5' w labels hypertext point pt 5 lc rgb 'blue', "data_file.txt" using 4:5:6 title 'v6' w labels hypertext point pt 5 lc rgb 'green' The plot is created and the hypertext labels appear when I mouse over the data points, but my legend/key in the upper right no longer contains a blue and green box next to the dataset titles. It is just blank white where the two separate color points should be. Why is this happening? Here are the contents of data_file.txt: 150 1 x1 185 1 x1 105 1 x2 140 1 x2 140 1 x3 180 1 x3 |