bugGNU Octave - Bugs: bug #43292, Cannot change figure properties

 
 

bug #43292: Cannot change figure properties

Submitted by:  None
Submitted on:  Wed 24 Sep 2014 09:53:26 AM UTC  
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  3.8.1
Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Thu 25 Sep 2014 11:03:43 AM UTC, comment #2: 

Agreed, this needs a more minimal example or please attach the files that your function is loading that cause this error to come up. With a simpler script using 10 semilogx calls, I get no such error.

Mike Miller <mtmiller>
Project Administrator
Wed 24 Sep 2014 11:45:21 AM UTC, comment #1: 

Hi,

Thanks for your bug report. It seems strange to me that the offending line is the one you indicate. Setting figure's 'paperunits' property should only perform a simple conversion of the 'paperposition' property.

Can you provide a self consistent example (i.e. that doesn't depend on external data) so that others can reproduce the error by just copying/pasting your script?

Pantxo Diribarne <pantxo>
Project Member
Wed 24 Sep 2014 09:53:26 AM UTC, original submission:  

Code:

function plot_stuff(set)
files=readdir(pwd);
for k=1:numel(files)
    if regexp(files{k},sprintf('^set_%d_',set))
        data=load(files{k});
        semilogx(data(:,1),data(:,2));
        hold on
    end
end
xlabel('$t$');
ylabel('$H$');
set(gcf(),'paperunits','centimeters'); %Error "A(I,J,...): index to dimension 2 out of bounds; value 117 out of bound 1"

set(gcf(), 'paperposition', [0 0 7 5]);
print('-dfig', '-color', '-textspecial',sprintf('set_%d.fig',set));
hold off
end

Same error regardless if I am using gnuplot or fltk

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-07 rik5 Open/ClosedOpen => Closed
    2014-09-25 mtmiller StatusNone => Works For Me

    Back to the top


    Powered by Savane 3.5