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

 
 

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

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Sat 24 Apr 2010 02:14:08 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Thomas DetmanOpen/Closed: Closed
Release: 3.2.3Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.

 

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

Attach File(s):
   
   
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
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by bpabbott (Submitted the item)
  • -unavailable- added by bpabbott
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 25 Apr 2010 06:32:26 PM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Sat 24 Apr 2010 03:57:44 PM UTCbpabbottAttached File-=>Added changeset.patch, #20311
      StatusConfirmed=>Patch Submitted
    Sat 24 Apr 2010 02:31:33 PM UTCbpabbottAssigned toNone=>bpabbott
    Sat 24 Apr 2010 02:14:08 PM UTCbpabbottAttached File-=>Added subTest.m, #20310
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1