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

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

[Octave-bug-tracker] [bug #48148] plottting with title and unboxed legen


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #48148] plottting with title and unboxed legend fails
Date: Tue, 7 Jun 2016 11:42:48 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

Follow-up Comment #5, bug #48148 (project octave):

I also obtain the same results as Philip on R2016a. Note however that legend
object don't behave like axes objects in this regard: when setting "visible"
to "off" on axes objects, only the axes lines, the tick labels and the
"x/y/zlabel" and "title" are hidden. The other children objects (lines,
patches ...) are drawn. 
So Octave behaves exactly as ML for axes objects and not for legend objects.

In ML you need to use "legend boxoff" to hide only the legend box, not the
whole legend. This also works in Octave

Now about the missing legend labels in Octave printout when you hide the box,
if you look carefully (in Rik's example) you'll see that *the text is drawn
but white*. FWIW this doesn't happen with the svg format:


plot (1:10);
legend abc
legend boxoff
title ('legend boxoff');
print toto.svg


works as expected. 
I checked in gl2ps-print.cc that the correct color is set prior to calling
"gl2psTextOpt". It looks like a bug in gl2ps when using multiple viewports but
I have no real clue ATM.  

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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