Problems using 'set key on outside box'

View: New views
3 Messages — Rating Filter:   Alert me  

Problems using 'set key on outside box'

by Schlupp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've got some problems putting my key box outside the plotting area by using 'set key on outside box'.
a) The box of the plotting area and the box of the key overlap - not in the gnuplot window, but when I use 'set terminal pslatex' to include the plot in my diploma thesis. I'd like to have some margin between it. Is there a possibility to add it? Or do I have to use 'set key at ...' ? Or manual editing of the resulting .tex file?
b) When the key moves from inside to outside of the plotting area, the width of the latter one shrinks (I don't now how to put it. When the key is inside, the plotting area has e.g. 400_px x xyz_px. When the key moves to the outside of the plotting area, the plotting area and the key together have a width of 400_px, maybe 300 for the plotting area and 100 for the key. I still would like to have 400 for the plotting area *and* 100 for the key). Maybe this can be done by adding 'set size 1.2,1'?

Thanks,
Reinhard

Re: Problems using 'set key on outside box'

by Hans-Bernhard Bröker-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Schlupp wrote:
> I'd like to have some margin between it. Is there a
> possibility to add it? Or do I have to use 'set key at ...' ?

Yes.

> b) When the key moves from inside to outside of the plotting area, the width
> of the latter one shrinks

Of course it does.  Space doesn't just come from nowhere.

> Maybe this can be done by adding 'set size 1.2,1'?

Not really.  But you can use the 'size' option of your terminal driver.
  That's what it's for.

------------------------------------------------------------------------------
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-info

Re: Problems using 'set key on outside box'

by Schlupp :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your answer, problem b) is solved :-)
a) is reamaining.
If I try to set up the key by
'set key on at 31,0.5 box'
the box appears at the upper right corner. That's fine so far, but now the plotting area occupies all space from left to right again. So the box is not on the outside of it. Do you have another suggestion? Shall I upload a picture somewhere?

Reinhard


Hans-Bernhard Bröker-2 wrote:
Schlupp wrote:
> I'd like to have some margin between it. Is there a
> possibility to add it? Or do I have to use 'set key at ...' ?

Yes.

> b) When the key moves from inside to outside of the plotting area, the width
> of the latter one shrinks

Of course it does.  Space doesn't just come from nowhere.

> Maybe this can be done by adding 'set size 1.2,1'?

Not really.  But you can use the 'size' option of your terminal driver.
  That's what it's for.

------------------------------------------------------------------------------
_______________________________________________
Gnuplot-info mailing list
Gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info