Share

gnuplot development

Tracker: Bugs

5 set/unset multiplot grows x11 windwo - ID: 2812476
Last Update: Comment added ( nobody )

This has been discussed before, but I've not previously been successful in
creating a simple example.

Running 4.2.5 or the deverlopers sources, the following command produce a
growing x11 window.

set terminal x11
set multiplot; plot sin(x); unset multiplot;
set multiplot; plot sin(x); unset multiplot;
set multiplot; plot sin(x); unset multiplot;
set multiplot; plot sin(x); unset multiplot;
set multiplot; plot sin(x); unset multiplot;
set multiplot; plot sin(x); unset multiplot;
set multiplot; plot sin(x); unset multiplot;
...

For me, repeating the set/plot/unset line 100 times is sufficient. However,
I do not get consistent results on different computers. There seems to be a
timing issue.

In any event, this did not show up for me until after the option for
specifying the size and position of the x11 window was added (for 4.2.4 no
growth occurs).

When the window does grow it appears to be by the amount allocated for the
mouse coordinates.


Ben Abbott ( bpabbott ) - 2009-06-26 00:27

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 3 )




Date: 2009-07-31 11:23
Sender: nobody

Thanks Ethan.

Sorry for the delay in checking your fix. All works on Mac OSX.


Date: 2009-07-04 23:57
Sender: sfeamProject Admin

OK. I've commited this fix, since we will need it anyhow if we are ever to
support mousing inside multiplot. I still don't see how it would explain
your earlier problems with x11 window sizing, but who knows - maybe it will
fix that also.


Date: 2009-06-30 20:20
Sender: sfeamProject Admin

The good news is that I now understand why this happens, and simple fix
below will avoid the problem. The bad news is that this test case
illustrates a flaw in initializing multiplot mode, so I doubt it is the
explanation for your earlier problem cases where the x11 window kept
growing. But if you can reproduce the earlier problem reports, you can see
whether this happens to fix them also. Before adding this change to CVS,
II need to think about whether there could be any undesirable side effects
for other terminals besides x11.


--- gnuplot/src/term.c 2009-06-26 16:57:29.000000000 -0700
+++ gnuplot-cvs/src/term.c 2009-06-30 13:15:19.000000000 -0700
@@ -780,7 +780,9 @@ term_start_multiplot()
* disable mouse; call UpdateStatusline()
* to eventually turn off statusline */
save_mouse_state = mouse_setting.on;
+/* EAM DEBUG This causes a window resizing artefact on x11
mouse_setting.on = 0;
+ EAM DEBUG */
UpdateStatusline();
#endif
}



Log in to comment.

Attached File ( 1 )

Filename Description Download
debug.gp Demo script Download

Changes ( 6 )

Field Old Value Date By
allow_comments 0 2009-07-04 23:57 sfeam
status_id Open 2009-07-04 23:57 sfeam
resolution_id None 2009-07-04 23:57 sfeam
allow_comments 1 2009-07-04 23:57 sfeam
close_date - 2009-07-04 23:57 sfeam
File Added 332407: debug.gp 2009-06-26 00:27 bpabbott