bugGNU Octave - Bugs: bug #29656, printed and displayed axes postion...

 
 

bug #29656: printed and displayed axes postion are different.

Submitter:  Ben Abbott <bpabbott>
Submitted:  Sat 24 Apr 2010 02:14:08 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Thomas Detman Open/Closed:  * Closed
Release:  * 3.2.3 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 25 Apr 2010 06:32:26 PM UTC, comment #3: 

I verified your patch in Mercurial and it works for me.  I'm going to close this issue.

Rik <rik5>
Group administrator
Sat 24 Apr 2010 03:57:44 PM UTC, 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)

Ben Abbott <bpabbott>
Group Member
Sat 24 Apr 2010 02:31:33 PM UTC, comment #1: 

I've confirmed this bug exists for the developers sources as well.

I'm able to run both the 4.2.x series of gnuplot as well as rather dated version of the developers sources (4.3). Only 4.2.x shows this problem.

Ben Abbott <bpabbott>
Group Member
Sat 24 Apr 2010 02:14:08 PM UTC, original submission:  

Hello,

I'm attaching a simple program that demonstrates the problem(s).

When I run this interactively under octave, I see (on the screen) exactly what want and expect.  I define a file name on line 35, and there is a print command on the next line, to save the plot in a file.

The problem is that the saved plot file, for some backends, does not match what was on the screen.  My goal was to eliminate white space between panels; on the screen it works, but with ".ps", ".pdf", it does not-- white space (enough for the x-tick mark labels) is introduced.  With ".jpg", ".png", and ".eps" the plot file is correct, no white space introduced.  However, for ".eps" everything, axes, labels, lines, text all look very thin and/or faint.

Side question: Is there a way to suppress the x-tick labels on the first (top) three subplots?  (Maybe, if I could do that, then the .pdf and/or .ps backends would not introduce that white space.  And the plots would look much better.)

Environment:
  GNU Octave, version 3.2.3
  Ubuntu 8.04

Thanks, Thanks, Thanks

Ben Abbott <bpabbott>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #20311:  changeset.patch added by bpabbott (1KiB - application/octet-stream - changeset)
file #20310:  subTest.m added by bpabbott (720B - application/octet-stream - test script)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by bpabbott (Submitted the item)
  • -email is unavailable- added by bpabbott
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-04-25 rik5 StatusPatch Submitted Fixed
        Open/ClosedOpen Closed
    2010-04-24 bpabbott Attached File- Added changeset.patch, #20311
        StatusConfirmed Patch Submitted
    2010-04-24 bpabbott Assigned toNone bpabbott
    2010-04-24 bpabbott Attached File- Added subTest.m, #20310
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code