bugGNU Octave - Bugs: bug #36326, title with axies handle corrupts...

 
 

bug #36326: title with axies handle corrupts figure

Submitter:  Michael Godfrey <godfrey>
Submitted:  Fri 27 Apr 2012 11:43:24 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  godfrey Open/Closed:  * Closed
Release:  * 3.6.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 28 Apr 2012 01:08:57 PM UTC, comment #3: 

Ben,

You are right.   Should have used gca().
I think the Manual is not too clear about this,
but anyhow I just got mixed up.

Sorry, and close this report.

Michael Godfrey <godfrey>
Group Member
Sat 28 Apr 2012 12:43:05 PM UTC, comment #2: 

Michael,

Did you intend to add the title to the pre-existing axes object?

If so, "axes()" should be replaced by "gca()".


figure(1)
plot(1:200)
figure(2)
plot(200:-1:1)
figure(1)
title(gca(),'title fig 1')


Ben Abbott <bpabbott>
Group Member
Fri 27 Apr 2012 11:50:54 PM UTC, comment #1: 

Sorry about the misspelling of axes in the title...

Michael Godfrey <godfrey>
Group Member
Fri 27 Apr 2012 11:43:24 PM UTC, original submission:  

The following sequence, using fltk backend produces
corrupted plot:
figure(1)
plot(1:200)
figure(2)
plot(200:-1:1)
figure(1)
title(axes(),'title fig 1')

The title is written to figure 1, but the figure
itself is corrupted.  If the title command is used
immediately aftert the plot(1:200) everything is OK.
The problem occurs if you want to provide a title
(or, I think, other annotation) to a previous
figure.

I have only tested this with fltk. It is likely that
gnuplot handles this differently.



Michael Godfrey <godfrey>
Group Member

 

(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 bpabbott (Posted a comment)
  • -email is unavailable- added by godfrey (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-28 bpabbott Open/ClosedOpen Closed
    2012-04-28 bpabbott StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code