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: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Works For MeAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 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 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 mtmiller (Posted a comment)
  • -unavailable- added by pantxo (Posted a comment)
  •  

    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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 07 Oct 2014 03:07:22 PM UTCrik5Open/ClosedOpen=>Closed
    Thu 25 Sep 2014 11:03:43 AM UTCmtmillerStatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1