[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51229] ylim() fails to read correct limits:
From: |
Dave Goel |
Subject: |
[Octave-bug-tracker] [bug #51229] ylim() fails to read correct limits: |
Date: |
Mon, 12 Jun 2017 17:48:46 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?51229>
Summary: ylim() fails to read correct limits:
Project: GNU Octave
Submitted by: deego
Submitted on: Mon 12 Jun 2017 09:48:45 PM UTC
Category: Plotting with gnuplot
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Dave Goel
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.3
Operating System: GNU/Linux
_______________________________________________________
Details:
octave:2> version
ans = 4.0.3 ## from debian backports on debian stable.
Create a file testmy.m with the contents below, and run them. During the
sleep() phase, zoom in the figure. Our program tries to respect the user's
zoom preference for further plots, so it tries to read the new ylimits, but
fails.
Also note that we have to use gnuplot for this. With fltk, we can't even see
the plot during the sleep().
If you execute these steps one-by-one on commandline instead, the bug won't
show.
----
testmy.m:
graphics_toolkit("gnuplot"); ## using the default fltk, user can't even see
the plot during the sleep phase.
x = y = [1 2];
plot(x,y);
disp("Sleeping 10s. Go ahead and move ylims around on the figure! I will not
be able to read them upon waking up from sleep()!");
sleep(10);
drawnow(); ## Hoping this will help, but it doesn't.
refresh(); ## Hoping this will help, but it doesn't.
ylimnew = ylim()
## we obtain [1 2]
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51229>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #51229] ylim() fails to read correct limits:,
Dave Goel <=