From: Dima K. <gn...@di...> - 2021-02-24 19:06:13
|
Hi. I'd like a plot with the legend sitting outside the plot, above the top-right. Like this: window --------------------------------- | | | | | | | legend | | ------------------------- | | | | | | | | | | | plot | | | | | | | | | | | ------------------------- | | | | | | | --------------------------------- If we set a square aspect ratio, then the plot doesn't fill the window, and there's a lot of empty space. This isn't a problem in itself (and gnuplot doesn't control the window size, so it can't "fix" it), but it looks like the legend attaches itself to the corner of the window instead of the corner of the plot, which looks very strange: there's a huge gap between the plot and the legend. I get this: window --------------------------------- | legend| | | | | | | | ------------------------- | | | | | | | | | | | plot | | | | | | | | | | | ------------------------- | | | | | | | --------------------------------- I'm hesitant to call this a "bug", but this feels wrong. Am I just giving it incorrect commands? Demo script: set key outside above right set size ratio -1 plot x/10 Thanks |