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.
|
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"
|
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.
|
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.
|