What should "set key outside above right" do?

Dima Kogan <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <[email protected]>
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


_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.