gnuplot window moves when rotating image

Bug #225169 reported by michae7
4
Affects Status Importance Assigned to Milestone
gnuplot
Unknown
Unknown
gnuplot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gnuplot

Using Ubuntu 8.04 and gnuplot: Installed: 4.2.2-1

When plotting data using the splot command the gnuplot window opens and displays the 3d surface plot as expected. Before I installed 8.04 I was using 7.10 (I am not sure what version of gnuplot but it was the one from synaptic) and the 3d image could be rotated by left clicking in the window and dragging the mouse around. The other window would stay in one place and the image inside would rotate.

Using the new version, if the images is rotated when the window is not maximised the window moves down and to the right by about the width of the window title bar and left hand edge.

This makes me suspect that the program redraws the window by drawing a whole new window and deleting the old one using some standard api call. The new one is created slightly offset so that it doesn't cover the original, which is presumably the normal behaviour for a newly opened window but is wrong in this case because we want it to open in the same place as the previous one so that no change is noticeable.

The behaviour is annoying when you want to rotate your image but a basic work around is to maximise the window, so the bug is probably fairly minor.

Revision history for this message
Davi Garcia (davivcgarcia-deactivatedaccount) wrote :

Hi,

I'm with the same problem here on my notebook. I'm using Ubuntu fully updated with LTS packages. I'm using x86.

Thanks.

Revision history for this message
Timothée Lecomte (timothee-lecomte) wrote :

Hi,

I'm a gnuplot developer, and I can tell you how to fix this bug. Thanks for reporting this, and I can confirm this behaviour on my machine too.
In fact, this bug comes from wxWidgets 2.6 (at least 2.6.3, the one gnuplot is linked to in ubuntu 8.04). It has already been reported to us quite a long time ago, and the reporter found that using 2.8 was enough to fix the problem [1].

I see that wxGTK 2.8.7 is available in ubuntu 8.04, so I would suggest building and linking gnuplot against it. On my machine, it solves the issue.

[1] http://sourceforge.net/tracker/index.php?func=detail&aid=1575751&group_id=2055&atid=102055

Revision history for this message
michae7 (rpsmic001) wrote : Re: [Bug 225169] Re: gnuplot window moves when rotating image

Hi there,

Thanks for the information. I downloaded wxWidgets 2.8 from the
package manager. I actually installed gnuplot 4.2.3 from source and
that fixed the problem on my Ubuntu machine, even with the older
version of wxWidgets. Will link my gnuplot against the new version of
wxWidgets when I get a chance.

I should have made a comment about the upgrade fixing my problem on
the bug list, but I did want the Ubuntu team to make sure that the bug
is fixed for people who get gnuplot off the repositories. Most Ubuntu
users don't compile the software themselves.

Thanks again,

Michael

On Tue, Jul 29, 2008 at 2:17 PM, Timothée Lecomte
<email address hidden> wrote:
> Hi,
>
> I'm a gnuplot developer, and I can tell you how to fix this bug. Thanks for reporting this, and I can confirm this behaviour on my machine too.
> In fact, this bug comes from wxWidgets 2.6 (at least 2.6.3, the one gnuplot is linked to in ubuntu 8.04). It has already been reported to us quite a long time ago, and the reporter found that using 2.8 was enough to fix the problem [1].
>
> I see that wxGTK 2.8.7 is available in ubuntu 8.04, so I would suggest
> building and linking gnuplot against it. On my machine, it solves the
> issue.
>
> [1]
> http://sourceforge.net/tracker/index.php?func=detail&aid=1575751&group_id=2055&atid=102055
>
> --
> gnuplot window moves when rotating image
> https://bugs.launchpad.net/bugs/225169
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in "gnuplot" source package in Ubuntu: New
>
> Bug description:
> Binary package hint: gnuplot
>
> Using Ubuntu 8.04 and gnuplot: Installed: 4.2.2-1
>
> When plotting data using the splot command the gnuplot window opens and displays the 3d surface plot as expected. Before I installed 8.04 I was using 7.10 (I am not sure what version of gnuplot but it was the one from synaptic) and the 3d image could be rotated by left clicking in the window and dragging the mouse around. The other window would stay in one place and the image inside would rotate.
>
> Using the new version, if the images is rotated when the window is not maximised the window moves down and to the right by about the width of the window title bar and left hand edge.
>
> This makes me suspect that the program redraws the window by drawing a whole new window and deleting the old one using some standard api call. The new one is created slightly offset so that it doesn't cover the original, which is presumably the normal behaviour for a newly opened window but is wrong in this case because we want it to open in the same place as the previous one so that no change is noticeable.
>
> The behaviour is annoying when you want to rotate your image but a basic work around is to maximise the window, so the bug is probably fairly minor.
>

Revision history for this message
Jorge Castro (jorge) wrote :

Reviewing this bug report and its comments it seems that multiple people are experiencing this problem. Subsequently, I am confirming this bug report. For future reference you can manage the status of bug reports by clicking on the current status in the yellow line and then choosing a new status in the drop down box. You can learn more about bug statuses at http://wiki.ubuntu.com/Bugs/Status .

Changed in gnuplot:
status: New → Confirmed
Revision history for this message
svetylk0 (svetylk0) wrote :

Inrepid ibex, same problem :-)

Revision history for this message
Eugene Yurtsev (eyurtsev) wrote :

Ubuntu 8.04, same problem.

Revision history for this message
Eugene Yurtsev (eyurtsev) wrote :

Recompiled gnuplot 4.2.4 from source. That fixed the problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.