bugGNU Octave - Bugs: bug #34198, changing figure units changes the...

 
 

bug #34198: changing figure units changes the figure size

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Fri 02 Sep 2011 04:05:53 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 16 Feb 2012 01:23:35 PM UTC, comment #4:

Thanks Rik, I had meant to close this already.

There may be other bugs that trace their origins to the grpahics.cc and _init_fltk_.cc changesets that have been pushed in the last few weeks.

Ben Abbott <bpabbott>
Project Member
Thu 16 Feb 2012 06:12:56 AM UTC, comment #3:

Is this bug still a problem? Using the following tip on the development branch

parent: 14369:ba01a38bc5c1 tip
Use internal bounding box in figure::properties::set_position.

I get all 4 figures plotted correctly with FLTK. I think the following changeset may have fixed this bug as well as #35430.

changeset: 14357:e7c74f56cd03
user: Ben Abbott <bpabbott@mac.com>
date: Sat Feb 11 21:09:03 2012 -0500
summary: fltk toolkit requires figure units to be "pixels". Bug # 35430.

Rik <rik5>
Project Administrator
Sat 03 Sep 2011 07:52:22 PM UTC, comment #2:

Changed the title for the bug

Ben Abbott <bpabbott>
Project Member
Fri 02 Sep 2011 04:18:12 PM UTC, comment #1:

My comment that the figures with units of inches and centimeters were not visible wasn't correct. They were shrunk to a small size in the upper left of my screen. A screen shot is attached.

Apparently the FLTK backend is ignoring the figure's units and taking the value of the figure's position property to be pixels.

(file #23932)

Ben Abbott <bpabbott>
Project Member
Fri 02 Sep 2011 04:05:53 PM UTC, original submission:

Changing a figure's units produced erratic behavior on MacOS when using the FLTK backend. I assume the same behavior will occur for Linux? / Windows?

Gnuplot works as expected.

Running the script below ...

... produces the text ...

These results are correct (my "screenpixelsperinch" is 99.989)

However, when the units are centimeters or inches the figure is not visible.

The figure, with units = points is visible, but has changed position and size (I've attached a png for both units = pixels and points).

The size of the figure when the units are set to points is 517 × 478. When the units are pixels the size is 674 × 596.

My screensize is reported to be [1 1 1680 1028]. The actual size is 1680x1050. The minor difference is due to the menu bar of MacOS.

Ben Abbott <bpabbott>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #23932:  Screen Shot.png added by bpabbott (2MiB - image/png - MacOS screen shot)
file #23930:  pixels.png added by bpabbott (74KiB - image/png - figure with units = pixels & points on MacOS 10.7)
file #23931:  points.png added by bpabbott (61KiB - image/png - figure with units = pixels & points on MacOS 10.7)

 

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)
  •  

    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
    Thu 16 Feb 2012 01:23:35 PM UTCbpabbottStatusWorks For Me=>Fixed
      Open/ClosedOpen=>Closed
    Thu 16 Feb 2012 06:12:56 AM UTCrik5StatusNone=>Works For Me
    Sat 03 Sep 2011 07:52:22 PM UTCbpabbottSummarychanging figure units produces erratic behavior=>changing figure units changes the figure size
    Fri 02 Sep 2011 04:18:12 PM UTCbpabbottAttached File-=>Added Screen Shot.png, #23932
    Fri 02 Sep 2011 04:05:53 PM UTCbpabbottAttached File-=>Added pixels.png, #23930
      Attached File-=>Added points.png, #23931

    Back to the top


    Powered by Savane 3.1-cleanup1