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

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

[Octave-bug-tracker] [bug #55328] loglog plots have clipped exponents fo


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #55328] loglog plots have clipped exponents for labels of x and y axes
Date: Mon, 31 Dec 2018 06:39:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

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

Systematically increasing the bbox height by one pixels makes things work for
both Verdana and Roboto but I have no real justification for it:


--- a/libinterp/corefcn/ft-text-renderer.cc     Sun Dec 30 11:58:56 2018
-0800
+++ b/libinterp/corefcn/ft-text-renderer.cc     Mon Dec 31 12:36:38 2018
+0100
@@ -663,7 +663,7 @@
       {
         Matrix& bb = line_bbox.back ();
         bb(1) = m_ymin;
-        bb(3) = m_ymax - m_ymin;
+        bb(3) = (m_ymax + 1) - m_ymin;
         if (m_deltax > 0)
           bb(2) += m_deltax;
       }



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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