bugGNU Octave - Bugs: bug #37752, doing set(gca, "parent",...

 
 

bug #37752: doing set(gca, "parent", gcf) repeatedly changes figure

Submitted by:  Muhali <muhali>
Submitted on:  Thu 15 Nov 2012 04:45:53 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich 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)

Thu 13 Feb 2014 05:43:12 AM UTC, comment #8:

It works for me. Closing report.

Rik <rik5>
Project Administrator
Wed 12 Feb 2014 11:04:35 PM UTC, comment #7:

I took a quick look at the patch. Looks like a nice and simple fix. Thanks.

http://hg.savannah.gnu.org/hgweb/octave/rev/0cbd0d285541

Ben Abbott <bpabbott>
Project Member
Wed 12 Feb 2014 09:30:49 PM UTC, comment #6:

Pantxo,

Your patch works for me.

Ben Abbott <bpabbott>
Project Member
Wed 12 Feb 2014 08:52:13 PM UTC, comment #5:

Hi, attached is a patch that avoids the problem (but doesn't say why reparent doesn't work).
I've also added the suggested test.

(file #30527)

Pantxo Diribarne <pantxo>
Project Member
Sat 15 Dec 2012 04:46:08 AM UTC, comment #4:

Once Jordi fixes this bug, perhaps a test should be added to avoid reversion?

Ben Abbott <bpabbott>
Project Member
Sat 15 Dec 2012 01:45:27 AM UTC, comment #3:

Simpler version

I don't have time to check at the moment, but might this be related to the changeset below?

http://hg.savannah.gnu.org/hgweb/octave/rev/1ac3c906990a

Ben Abbott <bpabbott>
Project Member
Sat 15 Dec 2012 12:57:08 AM UTC, comment #2:

Calling gca() after setting "parent" creates the second axes.

Ben Abbott <bpabbott>
Project Member
Thu 15 Nov 2012 04:59:00 PM UTC, comment #1:

This is decidedly weird. Try using fltk and rotating the plot. This seems to create two axes objects and reassigns to each other the parentage?

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Thu 15 Nov 2012 04:45:53 PM UTC, original submission:

When doing

the figure keeps changing.

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 #30527:  reparentaxes_bug37752.patch added by pantxo (2KiB - text/x-patch)

 

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 pantxo (Updated the item)
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by jordigh (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 13 Feb 2014 05:43:12 AM UTCrik5StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Wed 12 Feb 2014 11:04:35 PM UTCbpabbottStatusConfirmed=>Ready For Test
    Wed 12 Feb 2014 08:52:13 PM UTCpantxoAttached File-=>Added reparentaxes_bug37752.patch, #30527
    Sat 15 Dec 2012 12:57:08 AM UTCbpabbottOperating SystemGNU/Linux=>Any
    Thu 15 Nov 2012 04:59:00 PM UTCjordighStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1