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

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

[Octave-bug-tracker] [bug #52186] Adding an annotation also adds a black


From: Etienne Dechamps
Subject: [Octave-bug-tracker] [bug #52186] Adding an annotation also adds a black border around figure
Date: Sun, 8 Oct 2017 08:24:53 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0

Follow-up Comment #2, bug #52186 (project octave):

Intriguingly, the 'xcolor' and 'ycolor' properties of the axes object have an
effect on the color of the spurious border:


set(gca(), 'xcolor', [1 0 0])
set(gca(), 'ycolor', [0 1 0])


These will change the color of the axes *and* the spurious border around the
figure *at the same time*. Seems like there is something wrong with the
gnuplot axes properties that Octave generates.

One workaround could be to set these colors to white, but of course that's not
practical, because then the actual axes themselves become white.

A more intricate workaround is to create a new dummy axes object that we can
set to white:


dummy_axes = axes();
set(dummy_axes, 'color', 'none');
set(dummy_axes, 'box', 'on');
set(dummy_axes, 'xcolor', 'white');
set(dummy_axes, 'ycolor', 'white');
set(dummy_axes, 'xtick', [])
set(dummy_axes, 'ytick', [])


This seems to be effective at removing the spurious border.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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