[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49215] gnuplot toolkit window position jumps
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #49215] gnuplot toolkit window position jumps with colormap() upon first draw |
Date: |
Wed, 28 Sep 2016 18:32:42 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 |
URL:
<http://savannah.gnu.org/bugs/?49215>
Summary: gnuplot toolkit window position jumps with
colormap() upon first draw
Project: GNU Octave
Submitted by: sebald
Submitted on: Wed 28 Sep 2016 06:32:39 PM GMT
Category: Plotting with gnuplot
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
There was recently a "position" option added to qt and wxt terminals in
gnuplot. That's nice, but the consequence is that sometimes the window is
initially drawn in the default gnuplot location then jumps immediately to the
prescribed position. For example, with gnuplot/qt-term I am using imshow(),
and imshow() calls the following:
colormap(gray());
Similary,
figure();
will cause a jump as well. Try something like
[exit]
[launch]
colormap(gray());
So, I'm wondering if we can take out some initial draw or add some missing
position property at the start that will get rid of that window jump.
As a side note, the fact that position applies to X11, Windows, (and now) qt,
wxt is already noted at one location in the code, so the following redundancy
can be removed.
diff --git a/scripts/plot/util/__gnuplot_drawnow__.m
b/scripts/plot/util/__gnuplot_drawnow__.m
--- a/scripts/plot/util/__gnuplot_drawnow__.m
+++ b/scripts/plot/util/__gnuplot_drawnow__.m
@@ -237,8 +237,8 @@ function enhanced = gnuplot_set_term (pl
set (0, "units", units);
end_unwind_protect
if (all (screen_size > 0))
- ## For X11/Windows, set the figure positon as well as the size
- ## gnuplot position is UL, Octave's is LL (same for
screen/window)
+ ## Set the figure positon as well as the size gnuplot position
+ ## is UL, Octave's is LL (same for screen/window)
gnuplot_pos(2) = screen_size(2) - gnuplot_pos(2) -
gnuplot_size(2);
gnuplot_pos = max (gnuplot_pos, 1);
size_str = sprintf ("%s position %d,%d", size_str,
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49215>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #49215] gnuplot toolkit window position jumps with colormap() upon first draw,
Dan Sebald <=