|
From: Philipp K. J. <ja...@ie...> - 2014-11-07 02:22:51
|
Two issues:
1) The new (?) "spacing" option is not documented
at all. I can vaguely guess what it does, but not
entirely.
2) Using "spacing" repeatedly causes problems.
Consider this set of commands
set multiplot layout 2,1 spacing 0.1
plot sin(x)
plot cos(x)
unset multi
reset
If I put them into a file and then load them, the
graph comes up just fine. If I then try to load
them again, the graph is blank, and I get the
following error msg:
"m.gp", line 3: warning: Terminal canvas area too small to
hold plot. Check plot boundary and font sizes.
"m.gp", line 4: warning: Terminal canvas area too small to
hold plot. Check plot boundary and font sizes.
BUT if I remove the "spacing 0.1" option from the
multiplot command, I can load the file repeatedly,
without any problems.
Observed with RC2 and the wxt terminal.
|
|
From: Christoph B. <us...@be...> - 2014-11-07 09:55:52
|
Zitat von "Philipp K. Janert" <ja...@ie...>: > > 1) The new (?) "spacing" option is not documented > at all. I can vaguely guess what it does, but not > entirely. There is a small paragraph including an example at the end of the `set multiplot` section in the documentation. The `spacing` option was thought to be used together with the `margins` option. The `margins` option sets all outer margins of the multiplot area, whereas `spacing` gives the vertical and/or horizontal spacing between two plots. Unfortunatly, the example as given in the documentation: set multiplot layout 2,2 columnsfirst margins 0.1,0.9,0.1,0.9 spacing 0.1 set ylabel 'ylabel' plot sin(x) set xlabel 'xlabel' plot cos(x) unset ylabel unset xlabel plot sin(2*x) set xlabel 'xlabel' plot cos(2*x) unset multiplot doesn't work anymore (it used when the patch was checked in). That must have been broken. Also: I'm not sure, if had had thought of using `spacing` without also setting `margins` and if this is possible. In any case I'll check if using `spacing` alone could work or insert an appropriate error message it one of the two options isn't set. Thanks for testing! Christoph |
|
From: Philipp K. J. <ja...@ie...> - 2014-11-07 15:35:58
|
On Fri, 07 Nov 2014 10:55:43 +0100 Christoph Bersch <us...@be...> wrote: > Zitat von "Philipp K. Janert" <ja...@ie...>: > > > > 1) The new (?) "spacing" option is not documented > > at all. I can vaguely guess what it does, but not > > entirely. > > There is a small paragraph including an example at the end of the > `set multiplot` section in the documentation. > > The `spacing` option was thought to be used together with the > `margins` option. The `margins` option sets all outer margins of the > multiplot area, whereas `spacing` gives the vertical and/or > horizontal spacing between two plots. Yes, I saw that paragraph, but it did leave me a little in the dark. I guess "spacing" is using the same units as "margins"? [snip] > > Also: I'm not sure, if had had thought of using `spacing` without > also setting `margins` and if this is possible. In any case I'll > check if using `spacing` alone could work or insert an appropriate > error message it one of the two options isn't set. > I don't think it has anything to do with the concurrent use (or non-use) or "margin". It is also weird that gnuplot gets itself so wedged that even a "reset" does not help - I have to quit and restart after every "mulitplot ... spacing". (I really like the feature, otherwise - it solves a recurrent problem with multiplot.) Best, Ph. |
|
From: <pl...@pi...> - 2014-11-08 16:38:14
|
On 11/07/14 16:35, Philipp K. Janert wrote: > On Fri, 07 Nov 2014 10:55:43 +0100 > Christoph Bersch <us...@be...> wrote: > >> Zitat von "Philipp K. Janert" <ja...@ie...>: >>> >>> 1) The new (?) "spacing" option is not documented >>> at all. I can vaguely guess what it does, but not >>> entirely. >> >> There is a small paragraph including an example at the end of the >> `set multiplot` section in the documentation. >> >> The `spacing` option was thought to be used together with the >> `margins` option. The `margins` option sets all outer margins of the >> multiplot area, whereas `spacing` gives the vertical and/or >> horizontal spacing between two plots. > > Yes, I saw that paragraph, but it did leave me a > little in the dark. I guess "spacing" is using the > same units as "margins"? > > [snip] > >> >> Also: I'm not sure, if had had thought of using `spacing` without >> also setting `margins` and if this is possible. In any case I'll >> check if using `spacing` alone could work or insert an appropriate >> error message it one of the two options isn't set. >> > > I don't think it has anything to do with the > concurrent use (or non-use) or "margin". > > It is also weird that gnuplot gets itself so > wedged that even a "reset" does not help - I > have to quit and restart after every > "mulitplot ... spacing". > > (I really like the feature, otherwise - it solves > a recurrent problem with multiplot.) > > Best, > > Ph. > Yes, this is worth getting working correctly and fully documenting. I long ago gave up using multiplot due to the amount of real estate that it wasted in handling margins and spacing around graphs. I've usually ended up doing collation in a graphics processing tool on individual gnuplot graphs. There was a lot of grumbling from Octave devs about this too, who use gp as a plotting backend. Peter. |