octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #35292] FLTK plot figure crashes when using ri


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #35292] FLTK plot figure crashes when using right-mouse zoom and logarithmic axes
Date: Tue, 24 Jan 2012 15:24:08 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 Iceweasel/8.0

Follow-up Comment #17, bug #35292 (project octave):

I haven't looked at the zoom problem, but I do see an error with trying to
click and drag on the plot window when log axes are involved.

The problem there seems to be that moving the plot needs to be done in terms
of screen coordinates but the delta_x delta_y that are given to
axes_properties::translate_view are based on data values, and we don't know
where the mouse is.  For example, if you have a plot that goes from 10^1 to
10^3 and delta is 10, it has a much different meaning if the mouse position is
near 10^1 vs. 10^3, but the translate_view function doesn't have that
information.  So even if you adjust delta for the log scale, I don't see how
the calculation of the new limits can be correct.

I don't see how to untangle this mess without major surgery, but maybe one of
you will see a way to make it work.  OTOH, if you do, I'm afraid that the
result will be even messier and harder to maintain than what we currently
have.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35292>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]