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

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

[Octave-bug-tracker] [bug #47765] legend text covers the line and marker


From: Rik
Subject: [Octave-bug-tracker] [bug #47765] legend text covers the line and marker.
Date: Sat, 23 Apr 2016 17:03:47 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #4, bug #47765 (project octave):

Confirmed.  I agree with Pantxo's analysis as well.

I'm not sure whether the easiest solution would be to prevent a legend axes
object from ever getting selected, or whether we need to disable autoscaling
when the axes object is a legend.

For the second choice, the code is in libgui/graphics/Canvas.cc.


void
Canvas::canvasAutoAxes (const graphics_handle& handle)
{
  gh_manager::auto_lock lock;

  graphics_object go = gh_manager::get_object (handle);

  if (go.valid_object ())
    {
      figure::properties& fp = Utils::properties<figure> (go);

      graphics_handle ah = fp.get_currentaxes ();

      graphics_object ax = gh_manager::get_object (ah);

      if (ax.valid_object ())
        {
          axes::properties& ap = Utils::properties<axes> (ax);

          autoscale_axes (ap);

          redraw (true);
        }
    }
}


After getting the currentaxes into the variable ah, we could check that it
doesn't have the legend property before continuing.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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