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

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

[Octave-bug-tracker] [bug #50094] 2 more legend bugs


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #50094] 2 more legend bugs
Date: Tue, 17 Dec 2019 12:26:26 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #13, bug #50094 (project octave):

I obtain the very same result with normalized or pixel units:


 set(0, "defaultaxesfontsize", 12) ;
set(0, "defaultfigureunits", "normalized") ;
set(0, "defaultfigureposition", [0.682   0.702   0.25   0.25]) ;

n = 30 ;
plot(randn(4,n), "k") ;
## Set pixels units
set (gcf, "units", "pixels"); 
legend(datestr(now + (1:n)), "location", "northoutside") ;
legend("boxoff") ;
print foo.png ;


The problem is not the units but the size of the figure: with a small screen,
normalized units lead to small figure, too small for the legend and the plot
to fit in.

>> The other bug is independent of that, isn't it?

Yes, I don't know if there is a reported bug for this but basically, it boils
down to


axes ("position", [0 0 1 1], "xlim", [0 1]);
text (-0.1, 0.5, "A text that should at least partly appear onscreen")
text (0.9, 0.5, "A text that does partly appear onscreen")


The first text object isn't shown at all because its anchor is out of the
figure. The second is only partly visible as I would expect.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?50094>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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