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

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

[Octave-bug-tracker] [bug #29656] printed and displayed axes postion are


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #29656] printed and displayed axes postion are different.
Date: Sat, 24 Apr 2010 15:57:45 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2

Update of bug #29656 (project octave):

                  Status:               Confirmed => Patch Submitted        

    _______________________________________________________

Follow-up Comment #2:

I've submitted a trivial patch to the developers sources.

http://hg.savannah.gnu.org/hgweb/octave/rev/5f46cc552ce5

For those who wish to try the patch for one of the releases, the diff is
below.

diff -r ea79ebe99051 -r 5f46cc552ce5 scripts/plot/__go_draw_axes__.m
--- a/scripts/plot/__go_draw_axes__.m   Fri Apr 23 22:20:12 2010 -0700
+++ b/scripts/plot/__go_draw_axes__.m   Sat Apr 24 11:49:58 2010 -0400
@@ -50,8 +50,8 @@
       pos = __actual_axis_position__ (axis_obj);
     else
       pos = axis_obj.position;
-      pos = pos - implicit_margin([1, 2, 1, 2]).*[1, 1, -0.5, -0.5];
     endif
+    pos(1:2) = pos(1:2) - implicit_margin .* [0.75, 0.5];
     if (__gnuplot_has_feature__ ("screen_coordinates_for_{lrtb}margin"))
       if (nd == 2)
         x = [1, 1];


(file #20311)
    _______________________________________________________

Additional Item Attachment:

File name: changeset.patch                Size:1 KB


    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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