bugGNU Octave - Bugs: bug #38449, Changing default*units triggers a...

 
 

bug #38449: Changing default*units triggers a position update

Submitted by:  Muhali <muhali>
Submitted on:  Fri 01 Mar 2013 12:26:40 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Mon 24 Feb 2014 09:12:27 AM UTC, comment #6:

Thanks Ben.

Pantxo Diribarne <pantxo>
Mon 24 Feb 2014 01:57:59 AM UTC, comment #5:

Pantxo, I applied your patch. All tests in graphics.cc passed for me.

Ben Abbott <bpabbott>
Project Member
Sun 23 Feb 2014 09:40:54 PM UTC, comment #4:

Hello,

Ben, you are right the problem is in the order the properties are set.
The simplest way I found to solve this issue is to set the whole list of defaults (not that much) twice. It seems a bit hacky but I think it's robust.

Can someone try the attached patch?

Pantxo

(file #30681)

Pantxo Diribarne <pantxo>
Mon 04 Mar 2013 01:55:33 AM UTC, comment #3:

Equivalent problem for axes objects.

Ben Abbott <bpabbott>
Project Member
Mon 04 Mar 2013 12:15:59 AM UTC, comment #2:

A second test that seems to confirm the "position" is set before the "units", and the changing the "units" triggers the updater.

I'm modifying the summary to to better indicate the problem.

Ben Abbott <bpabbott>
Project Member
Mon 04 Mar 2013 12:09:52 AM UTC, comment #1:

To help isolate the problem, I tried converting the figure's units to the coded default value of "pixels".

Without looking at the code, I guess that the the updaters for the figure's properties are active during the initialization process. I had thought the updaters were off (or should be) during the initialization process.

Ben Abbott <bpabbott>
Project Member
Fri 01 Mar 2013 12:26:40 PM UTC, original submission:

This code

shows that setting 'defaultfigureposition' has no effect. What I get is

ans =

-1.7857e-04 -9.5238e-04 1.7857e-04 2.8571e-04

(along with a tiny figure at the lower left corner).

I am using the dev tip f837bdd535f7 of Feb 14.

Muhali <muhali>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #30681:  defaults_bug38449.patch added by pantxo (2kB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pantxo (Updated the item)
  • -unavailable- added by huntj
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by muhali (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
    Sun 23 Feb 2014 09:40:54 PM UTCpantxoAttached File-=>Added defaults_bug38449.patch, #30681
    Mon 04 Mar 2013 09:20:02 PM UTChuntjCarbon-Copy-=>Added huntj
    Mon 04 Mar 2013 01:55:33 AM UTCbpabbottSummaryChanging defaultfigureunits triggers a position update=>Changing default*units triggers a position update
    Mon 04 Mar 2013 12:20:09 AM UTCbpabbottSummaryChanging defaultfigureunits triggers a position/outerposition update=>Changing defaultfigureunits triggers a position update
    Mon 04 Mar 2013 12:15:59 AM UTCbpabbottSummarydefaultfigureposition has no effect=>Changing defaultfigureunits triggers a position/outerposition update
    Mon 04 Mar 2013 12:09:52 AM UTCbpabbottItem GroupNone=>Incorrect Result
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup