bugGNU Octave - Bugs: bug #31450, figure filename property not...

 
 

bug #31450: figure filename property not settable (MATLAB incompatibility)

Submitted by:  Kevin Davies <daviesk24>
Submitted on:  Mon 25 Oct 2010 02:25:26 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 1 - LaterItem Group: Feature Request
Status: FixedAssigned to: None
Originator Name: Kevin DaviesOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sat 13 Nov 2010 06:29:24 AM UTC, comment #5:

I checked in the following change so that this property is writable.

http://hg.savannah.gnu.org/hgweb/octave/rev/29b1f7d68665

The property is still not used anywhere in Octave that I know of, but at least now code that expects to be able to write to it won't fail.

Obviously this does not implement saving figures in the fig file format, but I think it addresses the problem of setting the filename property so I'm closing this bug report.

John W. Eaton <jwe>
Project Administrator
Tue 26 Oct 2010 02:31:43 AM UTC, comment #4:

To see what ML does, I created a simple figure. Saved it as a Matlab fig-file (untitled.fig). Changed its name to untitled.mat. And loaded the file. The contents look straight forward. I'm not currently planning to work on this, but if someone does they should also think about implementing copyobj().

p = load untitled.mat
p =

hgS_070000: [1x1 struct]

>> p.hgS_070000


ans =

type: 'figure'
handle: 5
properties: [1x1 struct]
children: [1x1 struct]
special: []

>> p.hgS_070000.properties


ans =

Color: [0.8 0.8 0.8]
Colormap: [64x3 double]
InvertHardcopy: 'on'
PaperOrientation: 'landscape'
PaperPosition: [0.25 0.25 10.5 8]
PaperSize: [11 8.5]
Position: [560 508 560 420]
ApplicationData: [1x1 struct]

>> p.hgS_070000.properties.ApplicationData


ans =

FileMenuFcnLastExportedAsType: 4

>> p.hgS_070000.children


ans =

type: 'axes'
handle: 967.01
properties: [1x1 struct]
children: [5x1 struct]
special: [4x1 double]

Ben Abbott <bpabbott>
Project Member
Mon 25 Oct 2010 05:45:32 PM UTC, comment #3:

Plus, we have no equivalent of the Matlab fig file format that I know of.

John W. Eaton <jwe>
Project Administrator
Mon 25 Oct 2010 04:35:52 PM UTC, comment #2:

Ben,
I understand. I'll try to find another way to do what I want. Thanks a lot.
Kevin

Kevin Davies <daviesk24>
Mon 25 Oct 2010 02:40:09 PM UTC, comment #1:

For those who drop by the filename property is described by Mathwords as ...

GUI FIG-file name. GUIDE stores the name of the FIG-file used to save the GUI layout in this property. In non-GUIDE GUIs, by default FileName is empty. You can set the FileName property in non-GUIDE GUIs as well, and get it to verify what GUI is running or whether it has been previously saved.

Kevin, Octave has a way to go before it is fully compliant with respect to the GUI features available with Matlab.

Ben Abbott <bpabbott>
Project Member
Mon 25 Oct 2010 02:25:26 PM UTC, original submission:

I am new to Octave, so maybe there's an obvious answer to this question. However, it seems to indicate an incompatibility with MATLAB. Here are the details:

It doesn't seem that the "filename" property of a figure is settable. If I enter "figure; get(gcf, 'filename')", I get ans = ''. If I then enter "set(gcf, 'filename', 'test')" I get an error: "set: unknown property "filename"". Is there a way to set this property? I'd like to use it to keep track of my figures as I save them.

Thanks.

Kevin Davies <daviesk24>

 

(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 (Updated the item)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by daviesk24 (Submitted the item)
  • -unavailable- added by daviesk24
  •  

    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
    Sat 13 Nov 2010 06:29:24 AM UTCjweStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 03 Nov 2010 02:47:42 AM UTCrik5Priority5 - Normal=>1 - Later
    Mon 25 Oct 2010 02:40:09 PM UTCbpabbottItem GroupNone=>Feature Request
      StatusNone=>Confirmed
      Release3.2.3=>dev
    Mon 25 Oct 2010 02:25:26 PM UTCdaviesk24Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1