bugGNU Octave - Bugs: bug #45440, Lines are wrong during a Z+ zoom...

 
 

bug #45440: Lines are wrong during a Z+ zoom and after.

Submitted by:  Doug Stewart <dastew>
Submitted on:  Tue 30 Jun 2015 02:27:41 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: dougOpen/Closed: Closed
Release: 4.0.0Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Fri 11 Aug 2017 12:11:14 PM UTC, comment #8:

This bug has been fixed.
It can be closed as fixed.

Doug Stewart <dastew>
Fri 24 Feb 2017 12:09:38 PM UTC, comment #7:

this problem is still here!!!!

hg id
95a9d6ffaecc tip @

Doug Stewart <dastew>
Fri 08 Jul 2016 01:21:08 AM UTC, comment #6:

this problem is still with us at
hg id = 9121d6584f6a

Doug Stewart <dastew>
Fri 25 Sep 2015 05:19:39 PM UTC, comment #5:

This problem is still in the latest compile Sept. 25.
here is a test script:
+verbatum+
x=rand(10,1);
y=rand(10,1);

#plot(x,y)
plot(x,y,'b',x+1,y-1,'g')

legend('one')
hold on

xx=rand(10,1);
yy=rand(10,1);

plot(xx,yy,'rx')
plot(xx,yy,'r')

hold off

-verbatum-

The problem shows up when you try zooming in with the mouse.
Select most of the screen with the zoom box, and you should see the red lines change, even before you finish the zoom box.

I tried many combinations, and it seems that you need the legend before the red lines are plotted, and you need to plot the red x--es before the red lines.
ie.
legend at the end is OK.
red lines before red x is OK

also
If you comment out the blue and green plot line and use the other plot command (just blue lines), then the problem acts slightly different but is still there.

I obviously can work around this problem, but it should be fixed, as it might cause other problems.

Doug Stewart <dastew>
Wed 01 Jul 2015 09:14:08 PM UTC, comment #4:

Still on default 4.1
One more clue.

1) when you start a Z+ zoom box at the bottom left of the zoom area that you want, and then move up to the right until you are on the legend are. You will see that the red lines disappear!!! while on the legend, and reappear when you move off of the legend. But the blue and green lines stay!!!

Why only the red lines? they were drawn with "hold on"

Doug Stewart <dastew>
Wed 01 Jul 2015 07:34:39 PM UTC, comment #3:

I have tip default running and the problem is sort of fixed.
When I start a Z+ zoom I see the red lines change and then fix themselves, in a flicker. Why they would be drawn in a wrong spot and then drawn in the correct spot is a mystery.
hg id
b6a59cc96bfa tip @

Doug Stewart <dastew>
Wed 01 Jul 2015 06:11:39 PM UTC, comment #2:

I can confirm this on 077e73619ba8 (stable).

This does not appear on default b6a59cc96bfa tip.

Andreas Weber <andy1978>
Project Member
Wed 01 Jul 2015 03:09:46 AM UTC, comment #1:

I did some more debugging and found that this script will show the problem.

x=rand(1,8);
y=randn(1,8);
plot(x,y)
legend ("f");
hold on
x=rand(1,8);
y=randn(1,8);
plot(x,y,'rx')
plot(x,y,'r')
hold off

If you comment out the legend line then the problem goes away!

so
QT graphics and legend command then the red lines change during a Z+ action.

Doug Stewart <dastew>
Tue 30 Jun 2015 02:27:41 AM UTC, original submission:

This only happens with the qt graphics

1) Run the attached program and enter 8 at the prompt.
( I don't like the fact tat the focus is left on the plot)

2) observe the red lines( they are correct)

3) select the Z+ zoom button.

4) now start a zoom in around the red lines near the center.

5) drag the mouse to make a box

6) the red lines have changed This is the problem!!

7) finish the drag and let it zoom

8) the red lines are wrong!!

9) now select the pan button and pan. now the red lines are ok
10) instead of the pan you can resize the window or anything the causes a redraw and the red lines are then OK.

Doug Stewart <dastew>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #34345:  newtonr_demo.m added by dastew (2KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by themusicgod1
  • -unavailable- added by andy1978 (Posted a comment)
  • -unavailable- added by dastew (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 11 Aug 2017 03:26:51 PM UTCjweStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sun 05 Mar 2017 02:25:17 AM UTCthemusicgod1Carbon-Copy-=>Added -unavailable-
    Wed 01 Jul 2015 06:11:39 PM UTCandy1978StatusNone=>Confirmed
    Tue 30 Jun 2015 02:27:41 AM UTCdastewAttached File-=>Added newtonr_demo.m, #34345

    Back to the top


    Powered by Savane 3.1-cleanup1