bugGNU Octave - Bugs: bug #39429, axis tight -> erases plot

 
 

bug #39429: axis tight -> erases plot

Submitter:  Ben Abbott <bpabbott>
Submitted:  Sun 07 Jul 2013 11:50:21 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 27 Jul 2013 12:45:05 PM UTC, comment #7: 

No report of problems, so I'm closing.

Ben Abbott <bpabbott>
Group Member
Sat 20 Jul 2013 02:58:10 PM UTC, comment #6: 

axis() was setting the span of zlim to zero.

I pushed a changeset.

http://hg.savannah.gnu.org/hgweb/octave/rev/13a12d01aca5

Ben Abbott <bpabbott>
Group Member
Sat 20 Jul 2013 02:38:29 PM UTC, comment #5: 

My prior comment can be ignored.  The problem is more esoteric than that.

The example below renders the correct result.


clf
pcolor (peaks)
axis tight
pos = get (gcf, 'position');
set (gcf, 'position', pos+1, 'position', pos)


Without looking further, my impression is that "axis tight" does not result in the children being redrawn.  Maybe they are not marked as modified?

Ben Abbott <bpabbott>
Group Member
Fri 19 Jul 2013 03:14:25 PM UTC, comment #4: 

This fixes the problem.


axis tight
axis (axis * (1 + eps ()))


Is there any reason adding such an adjustment to the OpenGL backend would be a problem?

Ben Abbott <bpabbott>
Group Member
Mon 08 Jul 2013 11:43:37 AM UTC, comment #3: 

Adding an extra "axis tight", or "axis auto" renders the correct plot.


pcolor (peaks)
axis tight


Ben Abbott <bpabbott>
Group Member
Mon 08 Jul 2013 11:22:06 AM UTC, comment #2: 

Also occurs under Linux.

Michael Goffioul <goffioul>
Sun 07 Jul 2013 11:51:52 PM UTC, comment #1: 

A simpler example.


pcolor (peaks)
axis tight


Ben Abbott <bpabbott>
Group Member
Sun 07 Jul 2013 11:50:21 PM UTC, original submission:  

The script below is the 6th demo for axis.m


clf
colormap default
[x, y, z] = peaks (50);
x1 = max (x(:));
pcolor (x-x1, y-x1/2, z)
hold on
[x,y,z] = sombrero ();
s = x1 / max (x(:));
pcolor (s*x+x1, s*y+x1/2, 5*z);
axis tight


The plot looks correct after the second pcolor(), but after "axis tight" the contents of the plotbox and the axes labels are erased.

I'm not sure if this occurs on other OS's, so I've selected Mac OS for the operating system.

Ben Abbott <bpabbott>
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 (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-07-27 bpabbott StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2013-07-20 bpabbott StatusNone Ready For Test
    2013-07-19 bpabbott Assigned toNone bpabbott
    2013-07-08 goffioul Operating SystemMac OS Any

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code