bugGNU Octave - Bugs: bug #29568, Colorbar misplaced after print to...

 
 

bug #29568: Colorbar misplaced after print to postscript

Submitter:  Petr Mikulik <mikulik>
Submitted:  Thu 15 Apr 2010 08:26:20 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Petr Mikulik Open/Closed:  * Closed
Release:  * 3.2.4 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 25 Apr 2010 06:36:21 PM UTC, comment #3: 

I verified Ben's comments.  After a recent series of changesets the problem is no longer evident.  I'm closing this bug and marking it fixed.

Rik <rik5>
Group administrator
Sat 24 Apr 2010 04:51:34 PM UTC, comment #2: 

After applying the three recent changesets below, I no longer see this problem.

_go_draw_axes_.m: Consistent placement of axes for ps vs other gnuplot terminals.

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

colorbar.m: Consistent treatment of plotboxaspectratio. Add listener for plotboxaspectratiomode.

http://hg.savannah.gnu.org/hgweb/octave/rev/568c7c041fac

_actual_axis_position_.m: Fix bug when restoring figure position property to its original value.

http://hg.savannah.gnu.org/hgweb/octave/rev/114376c7cba5

I've checked that the colorbar is placed as expected for both gnuplot 4.2.6 and for gnuplot sources I checked out a few months ago (approximately 4.4).

Ben Abbott <bpabbott>
Group Member
Fri 16 Apr 2010 07:14:33 PM UTC, comment #1: 

I suspect the problem is that the aspect ratio of the figure "paperposition" property is no the same as that of the figure "position" property. When I have the chance, I'll verify. In the meantime, if anyone wants to experiment, I'd start by modifying the private function _actual_axes_position_() to take into account the "paperposition" into account when appropriate.

Ben Abbott <bpabbott>
Group Member
Thu 15 Apr 2010 08:26:20 PM UTC, original submission:  

Plot produced after print to postscript draws misplaced colorbar. This happens in Octave 3.2 as well as in 3.3. Try either of these:

1.
a=1./hilb(10);
imagesc(a); colorbar
print -dps a.ps

2.
a=1./hilb(10);
imagesc(a); colorbar
print -dps a.ps
grid

3.
a=1./hilb(10);
imagesc(a); colorbar
print -dpsc a.ps
print -dpng a.png

Petr Mikulik <mikulik>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 (Updated the item)
  • -email is unavailable- added by mikulik (Submitted the item)
  •  

    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 6 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 StatusIn Progress Patch Submitted
    2010-04-24 bpabbott StatusNone In Progress
    2010-04-16 bpabbott Assigned toNone bpabbott
        Originator Name Petr Mikulik

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code