bugGNU Octave - Bugs: bug #43944, set(0,...

 
 

bug #43944: set(0, "defaultfigureunits", "normalized", "defaultfigureposition",...) shrinks figure

Submitter:  Muhali <muhali>
Submitted:  Tue 06 Jan 2015 12:04:59 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 08 Jan 2015 06:12:54 PM UTC, comment #8: 

I am currently (slowly) working on other octave projects so I won't take time for this particular one. Back-porting to gui-release is straightforward. For stable that is another story as we should consider ABI compatibility.

Pantxo Diribarne <pantxo>
Group Member
Wed 07 Jan 2015 06:03:34 PM UTC, comment #7: 

Indeed, works fine in default.
Any chance this fix will be backported?

Philip Nienhuis <philipnienhuis>
Group Member
Wed 07 Jan 2015 03:55:59 PM UTC, comment #6: 

Ok, I close the bug report. Thanks

Pantxo Diribarne <pantxo>
Group Member
Wed 07 Jan 2015 02:38:26 PM UTC, comment #5: 

Confirmed. I was using an older version due to an incorrect link. Sorry.

Muhali <muhali>
Wed 07 Jan 2015 02:08:30 PM UTC, comment #4: 

Oups, I though I had replied:
This very bug (which used to be bug #38449, reported by Muhali also) is supposed to have been fixed in the default branch (http://hg.savannah.gnu.org/hgweb/octave/rev/dc88c5784f74).

It is thus expected that gui-release or stable still behave incorrectly.
 
@Muhali: can you confirm you're not using the default branch?

Pantxo Diribarne <pantxo>
Group Member
Wed 07 Jan 2015 12:01:44 AM UTC, comment #3: 

(Win 7 64-bit Octave-3.9.0+ 64b indexing)
(cs 52c51472b6b9 gui-release "improved search for active dock-widget after focus has changed")

When trying the OP's commands, I couldn't find the figure at all.

Only after a while I found a stripe in the top left corner of the screen (it was just 1 mm high, pushed against the top edge). Pulling it down I got a yellow-filled graphics window that turned white after I dragged it into a bigger size.
I've attached a small series of screen captures to illustrate it.


>> get(gcf, "position")
ans =

   0.00000   0.97500   0.05208   0.02500


So, on my box I can confirm there's something fishy with the OP's sequence of commands.



Philip Nienhuis <philipnienhuis>
Group Member
Tue 06 Jan 2015 10:32:19 PM UTC, comment #2: 

I don't see any problem!!
 hg summary
parent: 19537:3b0a9a832360 tip

  • @audioplayer/resume.m: Fix nargin check.

branch: default


Doug Stewart <dastew>
Tue 06 Jan 2015 10:00:20 PM UTC, comment #1: 

Hi,

I can't reproduce this bug:


>> get(gcf, "position")
ans =

   0.20000   0.20000   0.30000   0.30093


The figure is at the expected position on-screen either with Qt or FLTK graphics toolkits.
I am at


$ hg summary
parent: 19528:4f615cd9a68d tip
 Use "testif HAVE_PORTAUDIO" for new audio function tests
branch: default
bookmarks: *@
commit: 1 unknown (clean)
update: (current)
mq:     5 unapplied


Pantxo Diribarne <pantxo>
Group Member
Tue 06 Jan 2015 12:04:59 PM UTC, original submission:  

As the subject says. Doing e.g.


set(0, "defaultfigureunits", "normalized", "defaultfigureposition", [0.2 0.2 0.3 0.3])
peaks
get(gcf, "position")


gives me a tiny figure in the lower left corner with position

ans =

   0.000595   0.020000   0.047619   0.000000

Muhali <muhali>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #32776:  PRN_43944.png added by philipnienhuis (132KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by muhali (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-07 pantxo StatusWorks For Me Fixed
        Open/ClosedOpen Closed
    2015-01-07 pantxo StatusNone Works For Me
    2015-01-07 philipnienhuis Attached File- Added PRN_43944.png, #32776

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code