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

 
 

bug #29568: Colorbar misplaced after print to postscript

Submitted by:  Petr Mikulik <mikulik>
Submitted on:  Thu 15 Apr 2010 08:26:20 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Ben Abbott <bpabbott>
Originator Name: Petr MikulikOpen/Closed: Closed
Release: 3.2.4Operating 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: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>
Project 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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

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

    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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 25 Apr 2010 06:36:21 PM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Sat 24 Apr 2010 04:51:34 PM UTCbpabbottStatusIn Progress=>Patch Submitted
    Sat 24 Apr 2010 12:56:24 AM UTCbpabbottStatusNone=>In Progress
    Fri 16 Apr 2010 11:50:51 AM UTCbpabbottAssigned toNone=>bpabbott
      Originator Name=>Petr Mikulik

    Back to the top


    Powered by Savane 3.1-cleanup1